[lworld] RFR: 8280382: [lworld] JCWithField AST node support should evolve to work with value classes

Srikanth Adayapalam sadayapalam at openjdk.java.net
Fri Jan 28 09:45:45 UTC 2022


On Fri, 28 Jan 2022 09:28:29 GMT, Aggelos Biboudis <duke at openjdk.java.net> wrote:

> You are right. The idea behind it was that I was getting a null reference exception on the subtype check. `t.referenceProjection()` was returning `null` and it was blowing up on the `t.equalsIgnoreMetadata(s)`. The triggering code was something like the following (so the reference projection of `o` was `null`).
> 
> ```
> value static final class V {}
> 
> Object o = V.default;
> ```
> 
> What do you think?

If this probem is still persisting, I suggest we raise a separate ticket for it. I don't know what is going on there, but can take a look and share observations on a separate task basis.

-------------

PR: https://git.openjdk.java.net/valhalla/pull/621



More information about the valhalla-dev mailing list