Isn't this a bug: allowUnderscoresInLiterals?

Peter B. Kessler Peter.B.Kessler at oracle.com
Wed Jan 26 17:30:27 PST 2011


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



More information about the compiler-dev mailing list