JDK-6401087 : asElement() called on a TypeMirror representing a constructor returns null.
Type:Bug
Component:core-libs
Sub-Component:javax.lang.model
Affected Version:6
Priority:P3
Status:Closed
Resolution:Duplicate
OS:generic
CPU:generic
Submitted:2006-03-20
Updated:2010-04-02
Resolved:2006-04-25
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.
failing tests: apt/regression/6401087
asElement() called on a TypeMirror representing a constructor returns null. This can lead to unexpected null pointer errors. It should return the appropriate element type.
Comments
EVALUATION
The documentation needs to be updated to explain that ExecutableTypes
don't have corresponding Elements.
Need to decide if we should return null, throw exception, or what.