JDK-8029012: parameter_index for type annotation not updated after outer.this added
Werner Dietl
wdietl at gmail.com
Mon Nov 17 19:34:43 UTC 2014
Hi Compiler people,
I have a question about bug report:
https://bugs.openjdk.java.net/browse/JDK-8029012
Which was pushed to JDK 9:
http://hg.openjdk.java.net/jdk9/dev/langtools/rev/aa9b6165ab12
and is proposed for JDK 8u40.
I'm concerned that this change introduces a mismatch between the
parameter index of a declaration annotation vs. a type annotation.
The example in my comment from March 1st, 2014, in JDK 9 now produces
a mismatching result for the two cases.
I'm not sure why this change should be pushed to 8u40, as it will make
the behavior inconsistent for different Java 8 versions.
In particular, I just found this new bug report:
https://bugs.openjdk.java.net/browse/JDK-8065132
Wouldn't it be better to only backport to 8u40 once the parameter
index for type and declaration annotations is consistent again?
Could somebody explain the rationale?
Thanks!
cu, WMD.
--
http://www.google.com/profiles/wdietl
More information about the compiler-dev
mailing list