RFR JDK-8208470: Type annotations on inner type that is an array component
B. Blaser
bsrbnd at gmail.com
Tue Sep 18 13:41:49 UTC 2018
Hi,
Please review the following fix for [1]:
http://cr.openjdk.java.net/~bsrbnd/jdk8208470/webrev.00/
We've seen in thread [2] that [3] has probably caused the regression.
Among the variants we explored, Werner's one enhanced as discussed in
[2] seems quite good to me.
It has a small side-effect as the array element type would then carry
the annotation which is revealed by test [4], but I'm of Werner's
opinion that this would be correct.
I've made other attempts [5] to avoid this side-effect but I'm not
sure this is really the right approach.
Any feedback is welcome (langtools:tier1 is OK),
Bernard
[1] https://bugs.openjdk.java.net/browse/JDK-8208470
[2] http://mail.openjdk.java.net/pipermail/compiler-dev/2018-July/012199.html
[3] http://hg.openjdk.java.net/jdk9/dev/langtools/rev/62e285806e83#l6.440
[4] http://cr.openjdk.java.net/~bsrbnd/jdk8208470/webrev.00/test/langtools/tools/javac/warnings/6747671/T6747671.out.frames.html
[5] http://mail.openjdk.java.net/pipermail/compiler-dev/2018-July/012266.html
More information about the compiler-dev
mailing list