You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Svatopluk Dedic (Jira)" <ji...@apache.org> on 2021/04/20 07:29:00 UTC

[jira] [Updated] (NETBEANS-5543) Reflective access of java.nio.DirectByteBuffer.cleaner() not allowed from JDK-16.

     [ https://issues.apache.org/jira/browse/NETBEANS-5543?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Svatopluk Dedic updated NETBEANS-5543:
--------------------------------------
    Labels: sd-candidate  (was: )

> 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
>            Priority: Major
>              Labels: sd-candidate
>
> 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: commits-unsubscribe@netbeans.apache.org
For additional commands, e-mail: commits-help@netbeans.apache.org

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