8042742: possible error in Tokens.Token.checkKind() for javac
Correcting expected token kind in an assert. Reviewed-by: jlahoda
This commit is contained in:
parent
c8e7590899
commit
d97fe7b050
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 1999, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1999, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -357,7 +357,7 @@ public class Tokens {
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user