[lworld] [Rev 01] RFR: 8237072: [lworld] Add support for denoting and deriving the reference projection
Srikanth Adayapalam
sadayapalam at openjdk.java.net
Fri May 1 11:44:17 UTC 2020
On Fri, 1 May 2020 00:51:48 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
> Another odd test:
>
> ```
> static inline class V {
> int y = 52;
>
> class Bar { }
> static class Baz { }
> }
>
> public static void main(String[] args) {
> new V.ref().new Bar();
> new V().new Bar();
> V.Baz baz1;
> V.ref.Baz baz2;
> }
> ```
>
> This gives:
>
> ```
> error: cannot find symbol
> new V.ref().new Bar();
> ^
> symbol: class Bar
> location: class V$ref
> error: cannot find symbol
> V.ref.Baz baz2;
> ^
> symbol: class Baz
> location: class V$ref
> 2 errors
> ```
This is acknowledged as a known TODO in
com.sun.tools.javac.code.Symbol.ClassSymbol#referenceProjection
I have raised JDK-8244233 to cover it,
-------------
PR: https://git.openjdk.java.net/valhalla/pull/32
More information about the valhalla-dev
mailing list