JDK-7133238 : Merge proto-kind and proto-type into a single result class
Type:Sub-task
Component:tools
Sub-Component:javac
Affected Version:8
Priority:P2
Status:Closed
Resolution:Fixed
OS:generic
CPU:unknown
Submitted:2012-01-25
Updated:2013-08-01
Resolved:2012-04-20
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Attribution code uses two parameters, pt and pkind respectively, to propagate the info about expected type and expected symbol kind. It would be nice to merge those values into an instance of a more general Result class.
Comments
SUGGESTED FIX
A webrev of this fix is available at the following URL:
http://hg.openjdk.java.net/jdk8/tl/langtools/rev/38ae13dcd215
06-03-2012
EVALUATION
This is a nice idea as it opens up possibilities of hooking custom check logics onto a given Result instance (which will be very useful in order to implement lambda expression attribution support).