JDK-8029012: parameter_index for type annotation not updated after outer.this added

Joel Borggrén-Franck joel.franck at oracle.com
Mon Nov 17 21:28:13 UTC 2014

Hi Werner,

FYI I just JDK-8065132 today. Sorry if you raised this concern back in March.

I think it is reasonable to backport both or none.


> On 17 Nov 2014, at 20:34, Werner Dietl <wdietl at gmail.com> wrote:
> 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