Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8343124

Tests fails with java.lang.IllegalAccessException: class com.sun.javatest.regtest.agent.MainWrapper$MainTask cannot access

XMLWordPrintable

    • 2d
    • b23
    • generic
    • generic

        Following two test fails with
        open/test/jdk/java/awt/print/Dialog/PrintDlgPageable.java
        open/test/jdk/javax/print/StreamPrintingOrientation.java
        test/jdk/javax/print/URLGIFPrinting.java


        ----------System.err:(11/874)----------
        java.lang.IllegalAccessException: class com.sun.javatest.regtest.agent.MainWrapper$MainTask cannot access a member of class PrintDlgPageable with modifiers "public static"
        at java.base/jdk.internal.reflect.Reflection.newIllegalAccessException(Reflection.java:401)
        at java.base/java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:692)
        at java.base/java.lang.reflect.Method.invoke(Method.java:563)
        at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
        at java.base/java.lang.Thread.run(Thread.java:1491)


        This two tests is not a public class & when I added public the test passes

              psadhukhan Prasanta Sadhukhan
              landrews Lawrence Andrews
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: