< prev index next >

test/langtools/tools/javac/parser/JavacParserTest.java

Print this page

        

*** 997,1007 **** } @Test //JDK-8065753 void testWrongFirstToken() throws IOException { String code = "<"; ! String expectedErrors = "Test.java:1:1: compiler.err.expected3: class, interface, enum\n" + "1 error\n"; StringWriter out = new StringWriter(); JavacTaskImpl ct = (JavacTaskImpl) tool.getTask(out, fm, null, Arrays.asList("-XDrawDiagnostics"), null, Arrays.asList(new MyFileObject(code))); --- 997,1007 ---- } @Test //JDK-8065753 void testWrongFirstToken() throws IOException { String code = "<"; ! 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, Arrays.asList("-XDrawDiagnostics"), null, Arrays.asList(new MyFileObject(code)));
< prev index next >