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

test/hotspot/jtreg/compiler/intrinsics/Test8237524.java fails with --illegal-access=deny

    XMLWordPrintable

Details

    • b27

    Backports

      Description

        This test fails when --illegal-access=deny (the default expected in a future release). It needs to be updated to add "@modules java.base/java.lang:open", otherwise it fails with:

        java.lang.reflect.InaccessibleObjectException: Unable to make java.lang.String(byte[],byte) accessible: module java.base does not "opens java.lang" to unnamed module @551e5cb8
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:355)
        at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:295)
        at java.base/java.lang.reflect.Constructor.checkCanSetAccessible(Constructor.java:189)
        at java.base/java.lang.reflect.Constructor.setAccessible(Constructor.java:182)
        at compiler.intrinsics.Test8237524.main(Test8237524.java:45)


        Attachments

          Issue Links

            Activity

              People

                enikitin Evgeny Nikitin
                alanb Alan Bateman
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: