[prev in list] [next in list] [prev in thread] [next in thread]
List: openjdk-compiler-dev
Subject: Isn't this a bug: allowUnderscoresInLiterals?
From: Peter.B.Kessler () oracle ! com (Peter B ! Kessler)
Date: 2011-01-27 1:30:27
Message-ID: 4D40CAB3.90707 () Oracle ! COM
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic