mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8246774: implement Record Classes as a standard feature in Java
Co-authored-by: Vicente Romero <vromero@openjdk.org> Co-authored-by: Harold Seigel <hseigel@openjdk.org> Co-authored-by: Chris Hegarty <chegar@openjdk.org> Reviewed-by: coleenp, jlahoda, sspitsyn, chegar
This commit is contained in:
parent
0b3e6c51ba
commit
c17d58516f
109 changed files with 294 additions and 784 deletions
|
@ -23,7 +23,7 @@
|
|||
|
||||
/*
|
||||
* @test
|
||||
* @bug 7073631 7159445 7156633 8028235 8065753 8205418 8205913 8228451 8237041 8253584
|
||||
* @bug 7073631 7159445 7156633 8028235 8065753 8205418 8205913 8228451 8237041 8253584 8246774
|
||||
* @summary tests error and diagnostics positions
|
||||
* @author Jan Lahoda
|
||||
* @modules jdk.compiler/com.sun.tools.javac.api
|
||||
|
@ -999,7 +999,7 @@ public class JavacParserTest extends TestCase {
|
|||
@Test //JDK-8065753
|
||||
void testWrongFirstToken() throws IOException {
|
||||
String code = "<";
|
||||
String expectedErrors = "Test.java:1:1: compiler.err.expected3: class, interface, enum\n" +
|
||||
String expectedErrors = "Test.java:1:1: compiler.err.expected4: class, interface, enum, record\n" +
|
||||
"1 error\n";
|
||||
StringWriter out = new StringWriter();
|
||||
JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(out, fm, null,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue