aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-08-18 12:52:08 (EDT)
committerStephan Herrmann2012-08-18 13:02:01 (EDT)
commit2eab698c606e3b17217602bbc99837242c743a5a (patch)
treeefec3ebf957cd26aaa45d726782476e42fb2a75d
parent119b7610051a73dfc60ea00b5f3eab78ca9c2ef2 (diff)
downloadeclipse.jdt.core-2eab698c606e3b17217602bbc99837242c743a5a.zip
eclipse.jdt.core-2eab698c606e3b17217602bbc99837242c743a5a.tar.gz
eclipse.jdt.core-2eab698c606e3b17217602bbc99837242c743a5a.tar.bz2
[1.7] PolymorphicSignatureTest fails with J9VM, passes with Sun VM.v20120818-170201I20120821-0800refs/changes/69/7269/2
J9's system class loader can handle [Ljava.lang.Object; but was not served with them since they were not recognized as excluded. Bug: 386816 Change-Id: I48bea90531ae451a7a617de8df854bbfd6af2f2d
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/TestVerifier.java2
-rw-r--r--org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/VerifyTests.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/TestVerifier.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/TestVerifier.java
index a31bc31..de9ba93 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/TestVerifier.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/TestVerifier.java
@@ -241,7 +241,7 @@ private String getVerifyTestsCode() {
" protected boolean isExcluded(String name) {\n" +
" // exclude the \"java\" packages.\n" +
" // They always need to be excluded so that they are loaded by the system class loader\n" +
- " if (name.startsWith(\"java\"))\n" +
+ " if (name.startsWith(\"java\") || name.startsWith(\"[Ljava\"))\n" +
" return true;\n" +
"\n" +
" // exclude the user defined package paths\n" +
diff --git a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/VerifyTests.java b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/VerifyTests.java
index 8dc456f..d36baa0 100644
--- a/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/VerifyTests.java
+++ b/org.eclipse.jdt.core.tests.compiler/src/org/eclipse/jdt/core/tests/util/VerifyTests.java
@@ -94,7 +94,7 @@ public class VerifyClassLoader extends ClassLoader {
protected boolean isExcluded(String name) {
// exclude the "java" packages.
// They always need to be excluded so that they are loaded by the system class loader
- if (name.startsWith("java"))
+ if (name.startsWith("java") || name.startsWith("[Ljava"))
return true;
// exclude the user defined package paths