8315532: Compiler Implementation for Unnamed Variables & Patterns

8317221: Implementation for javax.lang.model for Unnamed Variables & Patterns

Co-authored-by: Jan Lahoda <jlahoda@openjdk.org>
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Gavin Bierman <gbierman@openjdk.org>
Co-authored-by: Brian Goetz <briangoetz@openjdk.org>
Co-authored-by: Joe Darcy <darcy@openjdk.org>
Co-authored-by: Aggelos Biboudis <abimpoudis@openjdk.org>
Reviewed-by: jlahoda, mcimadamore
This commit is contained in:
Aggelos Biboudis 2023-10-30 10:28:48 +00:00 committed by Jan Lahoda
parent 3934127b08
commit c9d23c3940
38 changed files with 195 additions and 151 deletions

View file

@ -2206,7 +2206,7 @@ public class JavacParserTest extends TestCase {
/*public static final*/ _ /* = new Test() */ /*enum*/ ;
} """,
"""
Test.java:3:5: compiler.err.underscore.as.identifier
Test.java:3:5: compiler.err.use.of.underscore.not.allowed.non.variable
"""),
new TestCase("""
package t;
@ -2241,7 +2241,7 @@ public class JavacParserTest extends TestCase {
/*public static final*/ _ /* = new Test() */ /*enum*/ ;
} """,
"""
Test.java:3:5: compiler.err.underscore.as.identifier
Test.java:3:5: compiler.err.use.of.underscore.not.allowed.non.variable
"""),
new TestCase("""
package t;
@ -2330,7 +2330,7 @@ public class JavacParserTest extends TestCase {
/*public static final*/ A /* = new Test() */ /*enum*/ ;
} """,
"""
Test.java:3:5: compiler.err.underscore.as.identifier
Test.java:3:5: compiler.err.use.of.underscore.not.allowed.non.variable
"""),
};
for (TestCase testCase : testCases) {