diff options
author | Stephan Herrmann | 2016-05-16 16:31:41 +0000 |
---|---|---|
committer | Stephan Herrmann | 2016-05-16 16:31:41 +0000 |
commit | 263b793898ca57b309bd6778ade0cd2b4161c32a (patch) | |
tree | 1b383e9c5d3fef656de993db97bab5c177763a62 /org.eclipse.jdt.core/batch/org/eclipse/jdt/internal | |
parent | ca4e90737984d83a5ee00c4ca1b4c096a9685078 (diff) | |
download | org.eclipse.objectteams-263b793898ca57b309bd6778ade0cd2b4161c32a.tar.gz org.eclipse.objectteams-263b793898ca57b309bd6778ade0cd2b4161c32a.tar.xz org.eclipse.objectteams-263b793898ca57b309bd6778ade0cd2b4161c32a.zip |
Releng: update to and build against I20160511-2000 for 4.6RC1
Diffstat (limited to 'org.eclipse.jdt.core/batch/org/eclipse/jdt/internal')
-rw-r--r-- | org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java index 1eb8eae88..96bb04133 100644 --- a/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java +++ b/org.eclipse.jdt.core/batch/org/eclipse/jdt/internal/compiler/batch/ClasspathDirectory.java @@ -209,6 +209,7 @@ private Hashtable<String, String> getPackageTypes(String qualifiedPackageName) { if (f.isDirectory()) continue; String s = f.getAbsolutePath(); if (s == null) continue; + if (!(s.endsWith(SUFFIX_STRING_java) || s.endsWith(SUFFIX_STRING_JAVA))) continue; CompilationUnit cu = new CompilationUnit(null, s, this.encoding, this.destinationPath); CompilationResult compilationResult = new CompilationResult(cu.getContents(), 1, 1, 10); ProblemReporter problemReporter = @@ -217,6 +218,7 @@ private Hashtable<String, String> getPackageTypes(String qualifiedPackageName) { new CompilerOptions(this.options), new DefaultProblemFactory()); Parser parser = new Parser(problemReporter, false); + parser.reportSyntaxErrorIsRequired = false; CompilationUnitDeclaration unit = parser.parse(cu, compilationResult); org.eclipse.jdt.internal.compiler.ast.TypeDeclaration[] types = unit != null ? unit.types : null; |