JDK-6418666 : JSR269: Determine proper set of type visitor methods
Type:Bug
Component:core-libs
Sub-Component:javax.lang.model
Affected Version:6
Priority:P3
Status:Closed
Resolution:Fixed
OS:generic
CPU:generic
Submitted:2006-04-27
Updated:2017-05-16
Resolved:2006-07-01
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.
The JCK team has identified an apparent mismatch between the javax.lang.model.type hiearchy and the set of methods defined on the visitor interface. This must be addressed before GA.
Comments
EVALUATION
The proposed solution is to replace the "pseudo-type" interfaces
VoidType and PackageType (neither have any methods) with a single
NoType interface (also methodless) that represents all of the
pseudo-types VOID, PACKAGE, and NONE. VOID, PACKAGE, and NONE remain
distinct TypeKind values that can be dispatched on using a TypeKindVisitor.
Adjust visitor methods accordingly.