Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjay2018-11-27 05:55:52 +0000
committerJay Arthanareeswaran2018-11-29 07:15:35 +0000
commit2ea4c6b7bac849abcf85bfee1ba560eb0656856e (patch)
tree6c1a06ccff0c7a9dfd7c5d56eb8cad8722e63599
parente2b7468d95fff64647905e495bcc8efa650d588c (diff)
downloadeclipse.jdt.core-I20181201-1800.tar.gz
eclipse.jdt.core-I20181201-1800.tar.xz
eclipse.jdt.core-I20181201-1800.zip
version: 1.8.0-adoptopenjdk Change-Id: I9343c0c8ac14df417953ecc0aa3d1869a28783aa Signed-off-by: jay <jarthana@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java
index eec375388a..33aa81cb9a 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/AbstractCompilerTest.java
@@ -383,6 +383,10 @@ public class AbstractCompilerTest extends TestCase {
if (version.startsWith("1.8.0_")) {
int build = Integer.parseInt(version.substring("1.8.0_".length()));
reflectNestedClassUseDollar = build >= 171;
+ } else if (version.startsWith("1.8.0-")) {
+ // Some versions start with 1.8.0- but don't have build qualifier.
+ // Just assume they are > 171 build. Nothing much can be done.
+ reflectNestedClassUseDollar = true;
} else {
throw new IllegalStateException("Unrecognized Java version: "+version);
}

Back to the top