Akhilesh Singh created NETBEANS-5543:
----------------------------------------

             Summary: Reflective access of java.nio.DirectByteBuffer.cleaner() 
not allowed from JDK-16.
                 Key: NETBEANS-5543
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5543
             Project: NetBeans
          Issue Type: Bug
          Components: java - Editor
    Affects Versions: 12.4
            Reporter: Akhilesh Singh


NetBeans seems to be hacking into a few JDK internals and this will be 
disallowed by default from Java 16 onwards. Needs to replace it from  
Unsafe.invokeCleaner 
 

WARNING: Illegal reflective access by 
 org.netbeans.core.output2.FileMapStorage 
 
(jar:file:/Users/albatem/netbeans-12.3/platform/modules/org-netbeans-core-output2.jar!/)
 
 to method java.nio.DirectByteBuffer.cleaner()
      at 
 org.netbeans.core.output2.FileMapStorage.unmap(FileMapStorage.java:311)
      at 
 org.netbeans.core.output2.FileMapStorage.access$400(FileMapStorage.java:38)
      at 
 
org.netbeans.core.output2.FileMapStorage$MappedBufferResource.decRefs(FileMapStorage.java:479)
      at 
 
org.netbeans.core.output2.FileMapStorage.updateContents(FileMapStorage.java:377)
      at 
 org.netbeans.core.output2.FileMapStorage.getReadBuffer(FileMapStorage.java:341)
      at 
 org.netbeans.core.output2.AbstractLines.getText(AbstractLines.java:125)
      at 
 org.netbeans.core.output2.OutputDocument.getText(OutputDocument.java:195)



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to