JDK-8029012: parameter_index for type annotation not updated after outer.this added
wdietl at gmail.com
Mon Nov 17 19:34:43 UTC 2014
Hi Compiler people,
I have a question about bug report:
Which was pushed to JDK 9:
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:
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?
More information about the compiler-dev