RFR: JDK-8199907: JShell: NoSuchFieldError occurred due to accessing variables of intersection type inferred by `var`

Jan Lahoda jan.lahoda at oracle.com
Fri Sep 20 12:34:01 UTC 2019


Hi,

I ran into JDK-8199907 again - I apologize for missing it before.

I think Shinya's patch from:
https://mail.openjdk.java.net/pipermail/kulla-dev/2018-March/002248.html

is fine. But I'd like to enhance that a little, so that when the type of 
the variable changes (e.g. because of a change in the return type of a 
method that is called in the initializer), it is automatically 
recomputed (please see 
VariablesTest.lvtiRecompileDependentsWithIntersectionTypes2 for an example).

Proposed patch:
http://cr.openjdk.java.net/~jlahoda/8199907/webrev.00/

JBS: https://bugs.openjdk.java.net/browse/JDK-8199907

Thanks,
     Jan


More information about the kulla-dev mailing list