diff options
author | Danny van Bruggen <hexagonaal@gmail.com> | 2017-09-04 19:12:58 +0200 |
---|---|---|
committer | Danny van Bruggen <hexagonaal@gmail.com> | 2017-09-04 19:12:58 +0200 |
commit | c9123a785af0f1acd5c674a69d1a7cff88e4e7c2 (patch) | |
tree | 905b7043e7ee9a3135f95c2ef2f0600cd652ed64 /javaparser-testing | |
parent | 3333b59f2d150be1e5a02246600417687ed08cb3 (diff) | |
download | javaparser-c9123a785af0f1acd5c674a69d1a7cff88e4e7c2.tar.gz |
Fix BulkParseTest
Diffstat (limited to 'javaparser-testing')
4 files changed, 65 insertions, 464 deletions
diff --git a/javaparser-testing/pom.xml b/javaparser-testing/pom.xml index 7409e61d0..4e8b3a26a 100644 --- a/javaparser-testing/pom.xml +++ b/javaparser-testing/pom.xml @@ -119,6 +119,17 @@ <version>3.6.0</version> <scope>test</scope> </dependency> + <dependency> + <groupId>net.sourceforge.javadpkg</groupId> + <artifactId>dpkg</artifactId> + <version>1.0.0</version> + </dependency> + <dependency> + <groupId>commons-net</groupId> + <artifactId>commons-net</artifactId> + <version>3.6</version> + <scope>test</scope> + </dependency> </dependencies> </project> diff --git a/javaparser-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java b/javaparser-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java index 95706f73f..b3f1b43b9 100644 --- a/javaparser-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java +++ b/javaparser-testing/src/test/java/com/github/javaparser/manual/BulkParseTest.java @@ -7,11 +7,19 @@ import com.github.javaparser.ast.validator.Java9Validator; import com.github.javaparser.utils.CodeGenerationUtils; import com.github.javaparser.utils.Log; import com.github.javaparser.utils.SourceRoot; +import net.sourceforge.javadpkg.impl.DebianPackageParserImpl; import org.junit.Test; +import org.redline_rpm.ReadableChannelWrapper; +import org.redline_rpm.Scanner; import java.io.BufferedWriter; +import java.io.FileInputStream; +import java.io.FileOutputStream; import java.io.IOException; import java.net.URL; +import java.nio.channels.Channels; +import java.nio.channels.FileChannel; +import java.nio.channels.ReadableByteChannel; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -26,9 +34,8 @@ import static java.util.Comparator.comparing; public class BulkParseTest { /** - * Running this will download a version of the OpenJDK, - * unzip it, and parse it. - * If it throws a stack overflow exception, increase the JVM's stack size. + * Running this will download a version of the OpenJDK, unzip it, and parse it. If it throws a stack overflow + * exception, increase the JVM's stack size. */ public static void main(String[] args) throws IOException { new BulkParseTest().parseOpenJdk(); @@ -37,17 +44,19 @@ public class BulkParseTest { private void parseOpenJdk() throws IOException { Path workdir = CodeGenerationUtils.mavenModuleRoot(BulkParseTest.class).resolve(Paths.get(temporaryDirectory(), "javaparser_openjdk_download")); workdir.toFile().mkdirs(); - Path openJdkZipPath = workdir.resolve("openjdk.zip"); + Path openJdkZipPath = workdir.resolve("openjdk.deb"); if (Files.notExists(openJdkZipPath)) { Log.info("Downloading openjdk"); - download(new URL("https://home.java.net/download/openjdk/jdk8/promoted/b132/openjdk-8-src-b132-03_mar_2014.zip"), openJdkZipPath); + download(new URL("http://nl.archive.ubuntu.com/ubuntu/pool/main/o/openjdk-8/openjdk-8-source_8u131-b11-2ubuntu1.17.04.3_all.deb"), openJdkZipPath); } - if (Files.notExists(workdir.resolve("openjdk"))) { - Log.info("Unzipping openjdk"); - unzip(openJdkZipPath, workdir); - } - - bulkTest(new SourceRoot(workdir), "openjdk_test_results.txt"); + new DebianPackageParserImpl(); + +// if (Files.notExists(workdir.resolve("openjdk"))) { +// Log.info("Unzipping openjdk"); +// unzip(openJdkZipPath, workdir); +// } +// +// bulkTest(new SourceRoot(workdir), "openjdk_test_results.txt"); } @Test diff --git a/javaparser-testing/src/test/java/com/github/javaparser/utils/TestUtils.java b/javaparser-testing/src/test/java/com/github/javaparser/utils/TestUtils.java index 1a4b1d3a3..fd5e593f6 100644 --- a/javaparser-testing/src/test/java/com/github/javaparser/utils/TestUtils.java +++ b/javaparser-testing/src/test/java/com/github/javaparser/utils/TestUtils.java @@ -5,6 +5,9 @@ import com.github.javaparser.Problem; import okhttp3.OkHttpClient; import okhttp3.Request; import okhttp3.Response; +import org.apache.commons.net.ftp.FTPClient; +import org.apache.commons.net.ftp.FTPClientConfig; +import org.apache.commons.net.ftp.FTPReply; import java.io.*; import java.net.URL; @@ -99,6 +102,36 @@ public class TestUtils { Files.write(destination, response.body().bytes()); } + public static void downloadFtp(String server, String path, String user, String pass, OutputStream outputStream) throws IOException { + FTPClient ftp = new FTPClient(); + try { + ftp.connect(server); + System.out.println("Connected to " + server + "."); + System.out.print(ftp.getReplyString()); + + if (!FTPReply.isPositiveCompletion(ftp.getReplyCode())) { + throw new RuntimeException("FTP server refused connection."); + } + + ftp.user(user); + if (!FTPReply.isPositiveCompletion(ftp.pass(pass))) { + throw new RuntimeException("Password not accepted"); + } + Log.info("Authenticated."); + ftp.enterLocalPassiveMode(); + Log.info("Downloading..."); + if (!ftp.retrieveFile(path, outputStream)) { + throw new RuntimeException("Couldn't download " + path); + } + Log.info("Logging out."); + ftp.logout(); + } finally { + if (ftp.isConnected()) { + ftp.disconnect(); + } + } + } + public static String temporaryDirectory() { return System.getProperty("java.io.tmpdir"); } diff --git a/javaparser-testing/src/test/resources/com/github/javaparser/bulk_test_results/openjdk_test_results.txt b/javaparser-testing/src/test/resources/com/github/javaparser/bulk_test_results/openjdk_test_results.txt index 1afc2ec30..8a9fcbee5 100644 --- a/javaparser-testing/src/test/resources/com/github/javaparser/bulk_test_results/openjdk_test_results.txt +++ b/javaparser-testing/src/test/resources/com/github/javaparser/bulk_test_results/openjdk_test_results.txt @@ -1,453 +1 @@ -openjdk/jdk/test/java/util/WeakHashMap/GCDuringIteration.java -(line 118,col 39) Parse error. Found "equal" <IDENTIFIER>, expected one of "%=" "&=" "*=" "++" "+=" "--" "-=" "->" "/=" "::" ";" "<<=" "=" ">>=" ">>>=" "^=" "|=" - -openjdk/langtools/test/com/sun/javadoc/testSourceTab/DoubleTab/C.java -Lexical error at line 33, column 1. Encountered: "\\" (92), after : "" - -openjdk/langtools/test/com/sun/javadoc/testSourceTab/SingleTab/C.java -Lexical error at line 33, column 1. Encountered: "\\" (92), after : "" - -openjdk/langtools/test/com/sun/javadoc/testUnnamedPackage/BadSource.java -(line 0,col 0) Parse error. Found "Just" <IDENTIFIER>, expected one of ";" "@" "\u001a" "abstract" "class" "default" "enum" "final" "import" "interface" "module" "native" "open" "private" "protected" "public" "static" "strictfp" "synchronized" "transient" "transitive" "volatile" <EOF> - -openjdk/langtools/test/tools/javac/6302184/T6302184.java -Lexical error at line 29, column 9. Encountered: "\ufffd" (65533), after : "" - -openjdk/langtools/test/tools/javac/6440583/A.java -(line 25,col 28) Parse error. Found "1" <INTEGER_LITERAL>, expected "}" - -openjdk/langtools/test/tools/javac/annotations/AnnotationTypeElementModifiers.java -(line 17,col 5) 'private' is not allowed here. -(line 18,col 5) 'private' is not allowed here. -(line 20,col 5) 'protected' is not allowed here. -(line 21,col 5) 'protected' is not allowed here. -(line 23,col 5) 'static' is not allowed here. -(line 24,col 5) 'static' is not allowed here. -(line 26,col 5) 'final' is not allowed here. -(line 27,col 5) 'final' is not allowed here. -(line 29,col 5) 'synchronized' is not allowed here. -(line 30,col 5) 'synchronized' is not allowed here. -(line 32,col 5) 'volatile' is not allowed here. -(line 33,col 5) 'volatile' is not allowed here. -(line 35,col 5) 'transient' is not allowed here. -(line 36,col 5) 'transient' is not allowed here. -(line 38,col 5) 'native' is not allowed here. -(line 39,col 5) 'native' is not allowed here. -(line 41,col 5) 'strictfp' is not allowed here. -(line 42,col 5) 'strictfp' is not allowed here. -(line 44,col 5) 'default' is not allowed here. -(line 45,col 5) 'default' is not allowed here. - -openjdk/langtools/test/tools/javac/annotations/neg/AnnComma.java -(line 35,col 35) Parse error. Found ")", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/annotations/neg/NoDefault.java -(line 8,col 19) Parse error. Found "{", expected one of ";" "default" - -openjdk/langtools/test/tools/javac/annotations/neg/NoDefaultAbstract.java -(line 8,col 5) 'default' is not allowed here. - -openjdk/langtools/test/tools/javac/annotations/neg/NoStatic.java -(line 9,col 18) Parse error. Found "{", expected one of ";" "default" - -openjdk/langtools/test/tools/javac/annotations/neg/NoStaticAbstract.java -(line 9,col 5) 'static' is not allowed here. - -openjdk/langtools/test/tools/javac/annotations/neg/Syntax1.java -(line 40,col 21) Parse error. Found ",", expected one of "!=" "%" "&" "&&" "(" ")" "*" "+" "-" "/" "<" "<=" "==" ">" ">=" "?" "^" "instanceof" "|" "||" - -openjdk/langtools/test/tools/javac/annotations/neg/Z12.java -(line 35,col 15) Parse error. Found "void", expected one of ";" "@" "abstract" "boolean" "byte" "char" "class" "default" "double" "enum" "exports" "final" "float" "int" "interface" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "volatile" "with" "}" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/annotations/neg/Z13.java -(line 34,col 11) Parse error. Found "throws", expected one of ";" "default" - -openjdk/langtools/test/tools/javac/annotations/neg/Z14.java -(line 33,col 12) Parse error. Found "<", expected "{" - -openjdk/langtools/test/tools/javac/annotations/neg/Z2.java -(line 36,col 17) Parse error. Found "default", expected one of ";" "@" "[" "throws" "{" - -openjdk/langtools/test/tools/javac/annotations/neg/Z3.java -(line 36,col 17) Parse error. Found "default", expected one of ";" "@" "[" "throws" "{" - -openjdk/langtools/test/tools/javac/annotations/neg/Z5.java -(line 35,col 12) Parse error. Found "extends", expected "{" - -openjdk/langtools/test/tools/javac/annotations/neg/Z8.java -(line 34,col 10) Parse error. Found "int", expected ")" - -openjdk/langtools/test/tools/javac/annotations/neg/Z9.java -(line 33,col 15) Parse error. Found "<", expected one of ";" "@" "abstract" "boolean" "byte" "char" "class" "default" "double" "enum" "exports" "final" "float" "int" "interface" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "volatile" "with" "}" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/6967002/T6967002.java -(line 33,col 16) Parse error. Found "...", expected one of "!=" "%" "%=" "&" "&&" "&=" "(" ")" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/failures/BadCast.java -(line 12,col 16) Parse error. Found "@", expected one of "!" "(" "+" "++" "-" "--" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/failures/IncompleteArray.java -(line 11,col 11) Parse error. Found "@", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/failures/IndexArray.java -(line 12,col 11) Parse error. Found "@", expected one of "!=" "%" "%=" "&" "&&" "&=" "(" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/failures/OldArray.java -(line 12,col 10) Parse error. Found "@", expected one of "]" - -openjdk/langtools/test/tools/javac/annotations/typeAnnotations/failures/StaticFields.java -(line 13,col 10) Parse error. Found "@", expected one of "(" "++" "--" ";" "assert" "boolean" "break" "byte" "char" "continue" "do" "double" "exports" "false" "float" "for" "if" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "return" "short" "super" "switch" "synchronized" "this" "throw" "to" "transitive" "true" "try" "uses" "void" "while" "with" "{" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/api/T6265137a.java -(line 24,col 1) Parse error. Found <EOF>, expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/BadAnnotation.java -(line 34,col 21) Parse error. Found "int", expected ")" - -openjdk/langtools/test/tools/javac/BadHexConstant.java -(line 35,col 14) Parse error. Found "xL" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/declaration/method/MethodVoidParameter.java -(line 7,col 16) Parse error. Found "void", expected one of ")" "@" "abstract" "boolean" "byte" "char" "default" "double" "exports" "final" "float" "int" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "volatile" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/DefiniteAssignment/ConstantInfiniteWhile.java -Lexical error at line 68, column 0. Encountered: <EOF> after : "" - -openjdk/langtools/test/tools/javac/diags/examples/AnnotationMustBeNameValue.java -(line 31,col 15) Parse error. Found ",", expected one of "!=" "%" "&" "&&" ")" "*" "+" "-" "/" "<" "<=" "==" ">" ">=" "?" "^" "instanceof" "|" "||" - -openjdk/langtools/test/tools/javac/diags/examples/ArrayAndReceiver.java -(line 30,col 29) Parse error. Found "[", expected one of ")" "," - -openjdk/langtools/test/tools/javac/diags/examples/AssertAsIdentifier.java -(line 28,col 5) Parse error. Found "assert", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/AssertAsIdentifier2.java -(line 27,col 5) Parse error. Found "assert", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/CallMustBeFirst.java -(line 28,col 18) Parse error. Found "super", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/CantExtendIntfAnno.java -(line 28,col 12) Parse error. Found "extends", expected "{" - -openjdk/langtools/test/tools/javac/diags/examples/CatchWithoutTry.java -(line 27,col 14) Parse error. Found "catch", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/DefaultAllowedInIntfAnnotationMember.java -(line 27,col 18) Parse error. Found "default", expected one of ";" "@" "[" "throws" "{" - -openjdk/langtools/test/tools/javac/diags/examples/DotClassExpected.java -(line 27,col 11) Parse error. Found "int", expected one of "!" "(" "exports" "false" "module" "new" "null" "open" "opens" "provides" "requires" "super" "this" "to" "transitive" "true" "uses" "with" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/ElseWithoutIf.java -(line 27,col 14) Parse error. Found "else", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/EmptyCharLiteral.java -Lexical error at line 29, column 15. Encountered: "\'" (39), after : "\'" - -openjdk/langtools/test/tools/javac/diags/examples/EnumAsIdentifier.java -(line 28,col 5) Parse error. Found "enum", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/EnumAsIdentifier2.java -(line 27,col 5) Parse error. Found "enum", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/Expected2.java -(line 0,col 0) Parse error. Found "int", expected one of ";" "@" "\u001a" "abstract" "class" "default" "enum" "final" "import" "interface" "module" "native" "open" "private" "protected" "public" "static" "strictfp" "synchronized" "transient" "transitive" "volatile" <EOF> - -openjdk/langtools/test/tools/javac/diags/examples/Expected3.java -(line 0,col 0) Parse error. Found "int", expected one of ";" "@" "\u001a" "abstract" "class" "default" "enum" "final" "import" "interface" "module" "native" "open" "private" "protected" "public" "static" "strictfp" "synchronized" "transient" "transitive" "volatile" <EOF> - -openjdk/langtools/test/tools/javac/diags/examples/FinallyWithoutTry.java -(line 27,col 14) Parse error. Found "finally", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/ForeachBadInitialization.java -(line 29,col 14) Parse error. Found ":", expected one of "!=" "%" "%=" "&" "&&" "&=" "(" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/IdentifierExpected.java -(line 32,col 15) Parse error. Found "BL" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalChar.java -Lexical error at line 27, column 13. Encountered: "`" (96), after : "" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalComboModifiers.java -(line 27,col 5) Can have only one of 'public', 'private'. - -openjdk/langtools/test/tools/javac/diags/examples/IllegalDot.java -(line 29,col 12) Parse error. Found ".", expected one of "..." "@" "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/IllegalEscapeChar.java -Lexical error at line 27, column 18. Encountered: "!" (33), after : "\"\\" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalLineEndInCharLit.java -Lexical error at line 27, column 15. Encountered: "\n" (10), after : "\'" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalNonAsciiDigit.java -Lexical error at line 27, column 14. Encountered: "\u0660" (1632), after : "" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalStartOfExpr.java -(line 27,col 11) Parse error. Found "=", expected one of "!" "(" "+" "++" "-" "--" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "{" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/IllegalStartOfStmt.java -(line 29,col 17) Parse error. Found "}", expected one of "(" "++" "--" ";" "assert" "boolean" "break" "byte" "char" "continue" "do" "double" "exports" "false" "float" "for" "if" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "return" "short" "super" "switch" "synchronized" "this" "throw" "to" "transitive" "true" "try" "uses" "void" "while" "with" "{" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/IllegalUnderscore.java -(line 27,col 13) Parse error. Found "_" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/IllegalUnicodeEscape.java -(line 27,col 11) Parse error. Found <EOF>, expected one of "!" "(" "+" "++" "-" "--" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "{" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/InterfaceNotAllowed.java -(line 28,col 9) There is no such thing as a local interface. - -openjdk/langtools/test/tools/javac/diags/examples/IntfAnnotationCantHaveTypeParams.java -(line 26,col 12) Parse error. Found "<", expected "{" - -openjdk/langtools/test/tools/javac/diags/examples/IntfAnnotationsCantHaveParams.java -(line 27,col 17) Parse error. Found "int", expected ")" - -openjdk/langtools/test/tools/javac/diags/examples/IntfAnnotationsCantHaveTypeParams.java -(line 26,col 14) Parse error. Found "<", expected one of ";" "@" "abstract" "boolean" "byte" "char" "class" "default" "double" "enum" "exports" "final" "float" "int" "interface" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "volatile" "with" "}" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/InvalidBinaryNumber.java -(line 30,col 13) Parse error. Found "b201000010" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/InvalidHexNumber.java -(line 28,col 13) Parse error. Found "xz1357abc" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/LocalEnum.java -(line 27,col 14) Parse error. Found "enum", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/MalformedFpLit.java -(line 28,col 15) Parse error. Found "e" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/diags/examples/ModifierNotAllowed.java -(line 26,col 1) 'synchronized' is not allowed here. - -openjdk/langtools/test/tools/javac/diags/examples/NoAnnotationsOnDotClass.java -(line 30,col 14) Parse error. Found "@", expected one of "!" "(" "+" "++" "-" "--" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "{" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/NotAllowedClass.java -(line 28,col 17) Parse error. Found "class", expected one of "(" "++" "--" ";" "assert" "boolean" "break" "byte" "char" "continue" "do" "double" "exports" "false" "float" "for" "if" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "return" "short" "super" "switch" "synchronized" "this" "throw" "to" "transitive" "true" "try" "uses" "void" "while" "with" "{" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/NotAllowedVariable.java -(line 28,col 17) Parse error. Found "int", expected one of "(" "exports" "false" "module" "new" "null" "open" "opens" "provides" "requires" "super" "this" "to" "transitive" "true" "uses" "with" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/diags/examples/NotAStatement.java -(line 27,col 14) Parse error. Found "x" <IDENTIFIER>, expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/Orphaned.java -(line 27,col 14) Parse error. Found "case", expected "}" - -openjdk/langtools/test/tools/javac/diags/examples/PrematureEOF.java -(line 26,col 20) Parse error. Found <EOF>, expected one of ";" "<" "@" "abstract" "boolean" "byte" "char" "class" "default" "double" "enum" "exports" "final" "float" "int" "interface" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "void" "volatile" "with" "{" "}" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/ProcessorWrongType/ProcessorWrongType.java -(line 0,col 0) Parse error. Found "clas" <IDENTIFIER>, expected one of ";" "@" "\u001a" "abstract" "class" "default" "enum" "final" "import" "interface" "module" "native" "open" "private" "protected" "public" "static" "strictfp" "synchronized" "transient" "transitive" "volatile" <EOF> - -openjdk/langtools/test/tools/javac/diags/examples/RepeatedModifier.java -(line 27,col 12) Duplicated modifier - -openjdk/langtools/test/tools/javac/diags/examples/ThisAsIdentifier.java -(line 27,col 5) Parse error. Found "this", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/diags/examples/ThrowsNotAllowedInAnno.java -(line 27,col 18) Parse error. Found "throws", expected one of ";" "default" - -openjdk/langtools/test/tools/javac/diags/examples/TryWithoutCatchOrFinally.java -(line 29,col 9) Try has no finally, no catch, and no resources. - -openjdk/langtools/test/tools/javac/diags/examples/TryWithoutCatchOrFinallyOrResource.java -(line 28,col 9) Try has no finally, no catch, and no resources. - -openjdk/langtools/test/tools/javac/diags/examples/TypeReqClassArray.java -(line 30,col 34) Parse error. Found ")", expected "[" - -openjdk/langtools/test/tools/javac/diags/examples/UnclosedCharLiteral.java -Lexical error at line 27, column 16. Encountered: ";" (59), after : "\'a" - -openjdk/langtools/test/tools/javac/diags/examples/UnclosedComment.java -Lexical error at line 31, column 0. Encountered: <EOF> after : "" - -openjdk/langtools/test/tools/javac/diags/examples/UnclosedStringLiteral.java -Lexical error at line 27, column 21. Encountered: "\n" (10), after : "\"abc;" - -openjdk/langtools/test/tools/javac/Digits.java -Lexical error at line 11, column 43. Encountered: "\u0663" (1635), after : "" - -openjdk/langtools/test/tools/javac/enum/6384542/T6384542.java -(line 24,col 1) Parse error. Found "klass" <IDENTIFIER>, expected one of ";" "@" "class" "enum" "interface" "module" "open" - -openjdk/langtools/test/tools/javac/enum/6384542/T6384542a.java -(line 13,col 5) Parse error. Found "enum", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/enum/EnumAsIdentifier.java -(line 13,col 5) Parse error. Found "enum", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/enum/EnumMembersOrder.java -(line 11,col 10) Parse error. Found "d" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "(" ")" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/enum/ExplicitlyAbstractEnum1.java -(line 33,col 1) 'abstract' is not allowed here. - -openjdk/langtools/test/tools/javac/enum/ExplicitlyAbstractEnum2.java -(line 33,col 1) 'abstract' is not allowed here. - -openjdk/langtools/test/tools/javac/enum/ExplicitlyFinalEnum1.java -(line 33,col 1) 'final' is not allowed here. - -openjdk/langtools/test/tools/javac/enum/ExplicitlyFinalEnum2.java -(line 33,col 1) 'final' is not allowed here. - -openjdk/langtools/test/tools/javac/enum/LocalEnum.java -(line 34,col 14) Parse error. Found "enum", expected "}" - -openjdk/langtools/test/tools/javac/EOI.java -(line 33,col 16) Parse error. Found "foobar\u001a" <IDENTIFIER>, expected one of ";" "@" "\u001a" "abstract" "class" "default" "enum" "final" "interface" "module" "native" "open" "private" "protected" "public" "static" "strictfp" "synchronized" "transient" "transitive" "volatile" <EOF> - -openjdk/langtools/test/tools/javac/ExtendArray.java -(line 11,col 34) Parse error. Found "[", expected one of "," "implements" "{" - -openjdk/langtools/test/tools/javac/ExtraneousEquals.java -(line 33,col 22) Parse error. Found "=", expected one of "!" "(" "+" "++" "-" "--" "]" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/failover/FailOver01.java -(line 10,col 20) Parse error. Found "}", expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/failover/FailOver15.java -(line 17,col 9) Parse error. Found "}", expected one of "%=" "&=" "*=" "++" "+=" "--" "-=" "->" "/=" "::" ";" "<<=" "=" ">>=" ">>>=" "^=" "|=" - -openjdk/langtools/test/tools/javac/FloatingPointChanges/BadConstructorModifiers.java -(line 12,col 5) 'strictfp' is not allowed here. - -openjdk/langtools/test/tools/javac/generics/typevars/5060485/Compatibility02.java -(line 36,col 9) 'static' is not allowed here. - -openjdk/langtools/test/tools/javac/generics/typevars/6680106/T6680106.java -(line 11,col 24) Parse error. Found "[", expected one of "&" "," ">" - -openjdk/langtools/test/tools/javac/IllegalAnnotation.java -(line 10,col 5) Parse error. Found "@", expected "}" - -openjdk/langtools/test/tools/javac/incompleteStatements/T8000484.java -(line 9,col 14) Parse error. Found "catch", expected "}" - -openjdk/langtools/test/tools/javac/LabeledDeclaration.java -(line 35,col 8) Parse error. Found "int", expected one of "(" "exports" "false" "module" "new" "null" "open" "opens" "provides" "requires" "super" "this" "to" "transitive" "true" "uses" "with" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/lambda/BadLambdaPos.java -(line 18,col 26) Parse error. Found "+", expected one of ")" "," - -openjdk/langtools/test/tools/javac/lambda/BadStatementInLambda.java -(line 18,col 19) Parse error. Found "1" <INTEGER_LITERAL>, expected "}" - -openjdk/langtools/test/tools/javac/lambda/funcInterfaces/LambdaTest1_neg1.java -(line 13,col 64) Parse error. Found "}", expected one of "," ";" - -openjdk/langtools/test/tools/javac/lambda/lambdaExpression/InvalidExpression1.java -(line 15,col 66) Parse error. Found "}", expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/literals/BadBinaryLiterals.java -(line 11,col 20) Parse error. Found "2" <INTEGER_LITERAL>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/literals/BadUnderscoreLiterals.java -(line 18,col 14) Parse error. Found "_" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/literals/T6891079.java -(line 8,col 14) Parse error. Found "B" <IDENTIFIER>, expected one of "!=" "%" "%=" "&" "&&" "&=" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" ";" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/literals/UnderscoreLiterals.java -(line 176,col 14) Parse error. Found ".00_00_02" <FLOATING_POINT_LITERAL>, expected one of "!=" "%" "%=" "&" "&&" "&=" ")" "*" "*=" "+" "+=" "," "-" "-=" "->" "/" "/=" "::" "<" "<<=" "<=" "=" "==" ">" ">=" ">>=" ">>>=" "?" "^" "^=" "instanceof" "|" "|=" "||" - -openjdk/langtools/test/tools/javac/overrridecrash/A.java -(line 25,col 5) Can have only one of 'protected', 'private'. - -openjdk/langtools/test/tools/javac/overrridecrash/B.java -(line 35,col 5) Can have only one of 'protected', 'private'. - -openjdk/langtools/test/tools/javac/Parens3.java -(line 35,col 9) Parse error. Found ":", expected one of "%=" "&=" "*=" "++" "+=" "--" "-=" "->" "/=" "::" ";" "<<=" "=" ">>=" ">>>=" "^=" "|=" - -openjdk/langtools/test/tools/javac/ParseConditional.java -(line 41,col 13) Illegal left hand side of an assignment. - -openjdk/langtools/test/tools/javac/parser/7157165/T7157165.java -(line 11,col 19) Parse error. Found "|", expected one of "," ">" - -openjdk/langtools/test/tools/javac/parser/SingleCommaAnnotationValueFail.java -(line 34,col 11) Parse error. Found "0" <INTEGER_LITERAL>, expected "}" - -openjdk/langtools/test/tools/javac/parser/T4881269.java -(line 32,col 10) Parse error. Found ".", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/policy/test3/A.java -(line 3,col 36) Parse error. Found "0" <INTEGER_LITERAL>, expected "}" - -openjdk/langtools/test/tools/javac/processing/6994946/SyntaxErrorTest.java -(line 12,col 9) Parse error. Found "}", expected "(" - -openjdk/langtools/test/tools/javac/processing/errors/TestParseErrors/ParseErrors.java -(line 37,col 36) Parse error. Found ",", expected one of "..." "@" "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/quid/T6999438.java -Lexical error at line 8, column 9. Encountered: "#" (35), after : "" - -openjdk/langtools/test/tools/javac/rawDiags/Error.java -(line 9,col 17) Parse error. Found <EOF>, expected "(" - -openjdk/langtools/test/tools/javac/StoreClass.java -(line 35,col 9) Illegal left hand side of an assignment. -(line 36,col 9) Illegal left hand side of an assignment. - -openjdk/langtools/test/tools/javac/SynchronizedClass.java -(line 9,col 1) 'synchronized' is not allowed here. - -openjdk/langtools/test/tools/javac/T4994049/T4994049.java -(line 11,col 5) Parse error. Found "BAR" <IDENTIFIER>, expected one of "," ";" "}" - -openjdk/langtools/test/tools/javac/T6882235.java -(line 11,col 11) Parse error. Found ";", expected one of "!" "(" "+" "++" "-" "--" "boolean" "byte" "char" "double" "exports" "false" "float" "int" "long" "module" "new" "null" "open" "opens" "provides" "requires" "short" "super" "this" "to" "transitive" "true" "uses" "void" "with" "{" "~" <CHARACTER_LITERAL> <FLOATING_POINT_LITERAL> <IDENTIFIER> <INTEGER_LITERAL> <LONG_LITERAL> <STRING_LITERAL> - -openjdk/langtools/test/tools/javac/T8026963/TypeAnnotationsCrashWithErroneousTreeTest.java -(line 9,col 19) Parse error. Found "this", expected one of ")" "@" "abstract" "boolean" "byte" "char" "default" "double" "exports" "final" "float" "int" "long" "module" "native" "open" "opens" "private" "protected" "provides" "public" "requires" "short" "static" "strictfp" "synchronized" "to" "transient" "transitive" "uses" "volatile" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/TryWithResources/BadTwrSyntax.java -(line 14,col 42) Parse error. Found ";", expected ")" - -openjdk/langtools/test/tools/javac/TryWithResources/PlainTry.java -(line 11,col 9) Try has no finally, no catch, and no resources. - -openjdk/langtools/test/tools/javac/TryWithResources/ResDeclOutsideTry.java -(line 14,col 14) Parse error. Found "=", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javac/unicode/NonasciiDigit.java -Lexical error at line 35, column 21. Encountered: "\uff11" (65297), after : "" - -openjdk/langtools/test/tools/javac/unicode/NonasciiDigit2.java -Lexical error at line 35, column 18. Encountered: "\uff11" (65297), after : "" - -openjdk/langtools/test/tools/javac/unicode/TripleQuote.java -Lexical error at line 35, column 15. Encountered: "\'" (39), after : "\'" - -openjdk/langtools/test/tools/javac/UseEnum.java -(line 36,col 44) Parse error. Found "enum", expected "}" - -openjdk/langtools/test/tools/javac/VoidArray.java -(line 35,col 5) Parse error. Found "[", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javadoc/6964914/Error.java -(line 25,col 12) Parse error. Found "}", expected "(" - -openjdk/langtools/test/tools/javadoc/6964914/JavacWarning.java -(line 25,col 5) Parse error. Found "enum", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javadoc/enum/docComments/pkg1/Operation.java -(line 33,col 1) 'abstract' is not allowed here. - -openjdk/langtools/test/tools/javadoc/sourceOption/p/A.java -(line 27,col 5) Parse error. Found "assert", expected one of "exports" "module" "open" "opens" "provides" "requires" "to" "transitive" "uses" "with" <IDENTIFIER> - -openjdk/langtools/test/tools/javadoc/T4994049/FileWithTabs.java -Lexical error at line 25, column 1. Encountered: "\\" (92), after : "" - -164 problems in 144 files
\ No newline at end of file +0 problems in 0 files
\ No newline at end of file |