OpenJDK / jdk / jdk
changeset 57826:11c867b4f27e
8042742: possible error in Tokens.Token.checkKind() for javac
Summary: Correcting expected token kind in an assert.
Reviewed-by: jlahoda
Contributed-by: adam.sotona@oracle.com
author | jlahoda |
---|---|
date | Fri, 24 Jan 2020 12:31:51 +0100 |
parents | 8180290b2faa |
children | e8417433af30 |
files | src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java Fri Jan 24 10:31:45 2020 +0100 +++ b/src/jdk.compiler/share/classes/com/sun/tools/javac/parser/Tokens.java Fri Jan 24 12:31:51 2020 +0100 @@ -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 @@ 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); } }