JDK-8014709 : Constructor.getAnnotatedReturnType() returns empty AnnotatedType
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs25,8
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2013-05-16
  • Updated: 2014-06-26
  • Resolved: 2013-05-31
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.

To download the current JDK release, click here.
JDK 8 Other
8Fixed hs25Fixed
Related Reports
Relates :  
Description
For Constructor.getAnnotatedReturnType(), I don't think it can get
returned annotation type from below constructor AnnotationTypeTest01().
class AnnotationTypeTest01 {
     public @TypeAnno1("TypeAnno1")
     AnnotationTypeTest01() {
     }
}
Comments
This issue has test coveage in jdk/test/java/lang/annotations as well as in SQE testing. Setting noreg-sqe.
22-08-2013

RULE runtime/8007320/ConstMethodTest.java Exception OkException
20-06-2013

Turns out this is a hotspot issue. I forgot to set the typeAnnotations field for Constructors in reflection.cpp. Fix and test is ready for review on hotspot-dev.
28-05-2013

Fixing JDK-8009719 will fix this as well
27-05-2013