aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomasz Zarna2012-08-18 12:52:08 (EDT)
committerStephan Herrmann2012-08-20 15:57:35 (EDT)
commit8b2f544bc2c01b972e8c0734076c17a325ac4120 (patch)
tree8d99622aad69306632ac3d5c16f3c51dae802c24
parentc200ff6a2e44d13b91c04a3bdf5e1a8816f5d7d7 (diff)
downloadeclipse.jdt.core-8b2f544bc2c01b972e8c0734076c17a325ac4120.zip
eclipse.jdt.core-8b2f544bc2c01b972e8c0734076c17a325ac4120.tar.gz
eclipse.jdt.core-8b2f544bc2c01b972e8c0734076c17a325ac4120.tar.bz2
[1.7] PolymorphicSignatureTest fails with J9VM, passes with Sun VM.
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