[lworld] RFR: 8244235: java.lang.NoSuchFieldError: this when initializing an inner class inside an inline type
github.com+63007666+JimLaskey at openjdk.java.net
Tue May 12 11:54:29 UTC 2020
On Tue, 12 May 2020 02:56:59 GMT, Srikanth Adayapalam <sadayapalam at openjdk.org> wrote:
> Jim, Thanks for reviewing this small fix.
> Basically, javac mistakenly treats references to 'this' as an instance field.
> Fix is to handle this particular case specially and return the value factory
> product which is the proxy for 'this' in the inline factory.
> I renamed a method suitably for better clarity. Of the three call sites only
> one needed change. It is implausible in the other two sites that the symbol
> involved is 'this' (since 'this' cannot be assigned to and qualified this would
> have been lowered already)
Marked as reviewed by JimLaskey at github.com (no known OpenJDK username).
More information about the valhalla-dev