JDK 9 RFR of JDK-8074977: Constructor.getAnnotatedParameterTypes returns wrong value
Peter Levart
peter.levart at gmail.com
Sat May 20 21:38:53 UTC 2017
On 05/20/2017 11:30 PM, Peter Levart wrote:
> http://cr.openjdk.java.net/~plevart/jdk9-dev/8074977_ConstructorParameterAnnotations/webrev.01/
>
> If there was a reliable way to determine whether a local or anonymous
> class is from static context or not, then this could work for javac
> generated code at least.
>
... it works for member classes and for enum classes and enum constant
anonymous subclasses. Only local and anonymous classes are problematic...
Peter
More information about the core-libs-dev
mailing list