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

Maurizio Cimadamore maurizio.cimadamore at oracle.com
Fri Mar 13 13:14:32 UTC 2020


Looks good

Maurizio

On 13/03/2020 12:24, Jan Lahoda wrote:
> 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