RFR: JDK-8240964: Compilation error thrown when long literal used with yield

Jan Lahoda jan.lahoda at oracle.com
Fri Mar 13 12:24:47 UTC 2020


Hi,

The code that detects whether "yield" is a keyword for the yield 
statement or not is accidentally not handling long literals properly, 
and decides "yield 0L;" is not a yield statement, which leads to an 
improper compile-time error. The proposed patch is to simply handle the 
long literals properly.

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

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

How does this look?

Thanks,
     Jan



More information about the compiler-dev mailing list