[lworld] RFR: 8244235: java.lang.NoSuchFieldError: this when initializing an inner class inside an inline type
sadayapalam at openjdk.java.net
Tue May 12 05:19:34 UTC 2020
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)
- 8244235: java.lang.NoSuchFieldError: this when initializing an inner class inside an inline type
Stats: 59 lines in 2 files changed: 54 ins; 0 del; 5 mod
Fetch: git fetch https://git.openjdk.java.net/valhalla pull/42/head:pull/42
More information about the valhalla-dev