Pointer access struct field failed with SecurityManager

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • None
    • Affects Version/s: repo-panama
    • Component/s: core-libs

      When SecurityManager is enabled, access a struct field throwing SecurityException like following,

      java.lang.IllegalStateException: java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "accessDeclaredMembers")
      at java.base/java.foreign.memory.Pointer.get(Pointer.java:166)
      at java.base/jdk.internal.foreign.ScopeImpl.allocateStruct(ScopeImpl.java:160)
      at PointerAccessTest.testGlobalScope(PointerAccessTest.java:71)

            Assignee:
            Henry Jen
            Reporter:
            Henry Jen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: