summaryrefslogtreecommitdiff
path: root/lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java
diff options
context:
space:
mode:
Diffstat (limited to 'lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java')
-rw-r--r--lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java15
1 files changed, 15 insertions, 0 deletions
diff --git a/lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java b/lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java
new file mode 100644
index 00000000000..de3a8c688c8
--- /dev/null
+++ b/lang/openjdk7/patches/patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java
@@ -0,0 +1,15 @@
+$NetBSD: patch-jdk_test_java_beans_Introspector_4168475_Test4168475.java,v 1.1 2013/06/15 09:31:06 jperkin Exp $
+
+Test fixes.
+
+--- jdk/test/java/beans/Introspector/4168475/Test4168475.java.orig 2013-02-20 17:07:30.000000000 +0000
++++ jdk/test/java/beans/Introspector/4168475/Test4168475.java
+@@ -41,6 +41,8 @@ public class Test4168475 {
+ private static final String[] PATH = {"infos"};
+
+ public static void main(String[] args) throws IntrospectionException {
++ // running under jtreg -agentvm: system classloader can't find this class (separate classloader?)
++ Thread.currentThread().setContextClassLoader(Test4168475.class.getClassLoader());
+ Introspector.setBeanInfoSearchPath(PATH);
+ BeanInfo info = Introspector.getBeanInfo(Component.class);
+ PropertyDescriptor[] pds = info.getPropertyDescriptors();