Isn't this a bug: allowUnderscoresInLiterals?
Rémi Forax
forax at univ-mlv.fr
Sun Feb 6 13:52:46 PST 2011
On 01/27/2011 02:30 AM, Peter B. Kessler wrote:
> In src/share/classes/com/sun/tools/javac/parser/Scanner.java, I see
>
> 145 allowUnderscoresInLiterals = source.allowBinaryLiterals();
>
> Shouldn't that be
>
> 145 allowUnderscoresInLiterals =
> source.allowUnderscoresInLiterals();
>
> ? The effect is the same, since both methods have the same body
> (return compareTo(JDK1_7) >= 0), but there are no uses of
> Source.allowUnderscoresInLiterals() and I wouldn't want it to feel
> unloved.
>
> ... peter
yes, this is a bug :)
Rémi
More information about the compiler-dev
mailing list