You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@netbeans.apache.org by "Jaroslav Tulach (Jira)" <ji...@apache.org> on 2021/03/25 14:49:00 UTC

[jira] [Created] (NETBEANS-5500) URLStreamFactory registration violates JDK9+ reflection restrictions

Jaroslav Tulach created NETBEANS-5500:
-----------------------------------------

             Summary: URLStreamFactory registration violates JDK9+ reflection restrictions
                 Key: NETBEANS-5500
                 URL: https://issues.apache.org/jira/browse/NETBEANS-5500
             Project: NetBeans
          Issue Type: Bug
          Components: platform - Module System
    Affects Versions: 9.0
            Reporter: Jaroslav Tulach


If you run NetBeans on JDK9+ you'll see:
{code:java}
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.netbeans.ProxyURLStreamHandlerFactory (file:/netbeans/nbbuild/netbeans/platform/lib/boot.jar) to field java.net.URL.handler
WARNING: Please consider reporting this to the maintainers of org.netbeans.ProxyURLStreamHandlerFactory
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release {code}
There is a new API that one can use to register (most of) the factories on JDK9+: [https://docs.oracle.com/en/java/javase/11/docs/api/java.base/java/net/spi/URLStreamHandlerProvider.html] 

We should use it as once the JDK is going to ban the illegal access operations and then it is better to be ready.



--
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