mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
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:
parent
3934127b08
commit
c9d23c3940
38 changed files with 195 additions and 151 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue