RFR: JDK-8042742 possible error in Tokens.Token.checkKind() for javac
Jan Lahoda
jan.lahoda at oracle.com
Thu Jan 23 12:23:59 UTC 2020
Looks sensible to me. I can sponsor this patch.
Thanks,
Jan
On 22. 01. 20 10:54, Adam Sotona wrote:
> Hi,
> I would like to fix small typo in Tokens (see the patch below).
>
> JBS: https://bugs.openjdk.java.net/browse/JDK-8042742
>
>> diff -r 9c53fdf6ba63 src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java
>> --- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java Wed Jan 15 08:44:53 2020 +0100
>> +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java Wed Jan 15 15:26:25 2020 +0100
>> @@ -357,7 +357,7 @@
>>
>> protected void checkKind() {
>> if (kind.tag != Tag.DEFAULT) {
>> - throw new AssertionError("Bad token kind - expected " + Tag.STRING);
>> + throw new AssertionError("Bad token kind - expected " + Tag.DEFAULT);
>> }
>> }
>>
>
> Please let me know if this is OK.
>
> Thank you,
> Adam
More information about the compiler-dev
mailing list