--- a/jdk/test/ProblemList.txt Fri Dec 18 16:06:24 2015 +0000
+++ b/jdk/test/ProblemList.txt Fri Dec 18 16:12:55 2015 +0000
@@ -126,9 +126,6 @@
java/beans/Introspector/8132566/OverridePropertyInfoTest.java generic-all
java/beans/Introspector/8132566/OverrideUserDefPropertyInfoTest.java generic-all
-# 8145589
-java/beans/Introspector/Test6277246.java generic-all
-
############################################################################
# jdk_lang
--- a/jdk/test/java/beans/EventHandler/Test6277246.java Fri Dec 18 16:06:24 2015 +0000
+++ b/jdk/test/java/beans/EventHandler/Test6277246.java Fri Dec 18 16:12:55 2015 +0000
@@ -39,7 +39,7 @@
Class container = Class.forName("java.lang.Class");
Class parameter = Class.forName("java.lang.String");
Method method = container.getMethod("forName", parameter);
- Object[] arglist = new Object[] {"sun.misc.BASE64Encoder"};
+ Object[] arglist = new Object[] {"sun.security.x509.X509CertInfo"};
EventHandler eh = new EventHandler(Test6277246.class, "forName", "", "forName");
Object object = eh.invoke(null, method, arglist);
throw new Error((object != null) ? "test failure" : "test error");
--- a/jdk/test/java/beans/Introspector/Test6277246.java Fri Dec 18 16:06:24 2015 +0000
+++ b/jdk/test/java/beans/Introspector/Test6277246.java Fri Dec 18 16:12:55 2015 +0000
@@ -25,7 +25,7 @@
* @test
* @bug 6277246
* @summary Tests problem with java.beans use of reflection
- * @modules java.base/sun.misc
+ * @modules java.base/sun.security.x509
* java.desktop
* @run main/othervm Test6277246
* @author Jeff Nisewanger
@@ -36,11 +36,10 @@
import java.beans.Introspector;
import java.beans.MethodDescriptor;
import java.lang.reflect.Method;
-import sun.misc.BASE64Encoder;
public class Test6277246 {
public static void main(String[] args) throws IntrospectionException {
- Class type = BASE64Encoder.class;
+ Class type = sun.security.x509.X509CertInfo.class;
System.setSecurityManager(new SecurityManager());
BeanInfo info = Introspector.getBeanInfo(type);
for (MethodDescriptor md : info.getMethodDescriptors()) {
@@ -48,7 +47,7 @@
System.out.println(method);
String name = method.getDeclaringClass().getName();
- if (name.startsWith("sun.misc.")) {
+ if (name.startsWith("sun.")) {
throw new Error("found inaccessible method");
}
}
--- a/jdk/test/java/beans/Statement/Test6224433.java Fri Dec 18 16:06:24 2015 +0000
+++ b/jdk/test/java/beans/Statement/Test6224433.java Fri Dec 18 16:12:55 2015 +0000
@@ -36,7 +36,7 @@
System.setSecurityManager(new SecurityManager());
Class target = Test6224433.class;
String method = "forName";
- String[] params = {"sun.misc.BASE64Encoder"};
+ String[] params = {"sun.security.x509.X509CertInfo"};
if (null != new Expression(target, method, params).getValue())
throw new Error("failure: bug exists");