Skip to content
Permalink
Browse files

8042742: possible error in Tokens.Token.checkKind() for javac

Correcting expected token kind in an assert.

Reviewed-by: jlahoda
  • Loading branch information
asotona authored and Jan Lahoda committed Jan 24, 2020
1 parent c8e7590 commit d97fe7b05033636dcfbcead77f0b92ca3b014429
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java
@@ -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 boolean accepts(TokenKind that) {

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);
}
}

0 comments on commit d97fe7b

Please sign in to comment.