Isn't this a bug: allowUnderscoresInLiterals?
Jonathan Gibbons
jonathan.gibbons at oracle.com
Sun Feb 6 14:10:29 PST 2011
On 02/06/2011 01:52 PM, Rémi Forax wrote:
> 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
>
Noted. We'll take care of it.
-- Jon
More information about the compiler-dev
mailing list