Nashorn - Network Access via URLs
Is it currently possible to access the network using java.net.URLs with Nashorn?
Very standard code (e.g. new URL(url).getContent() that works fine in the normal JVM does not seem to have a content handler, gives a mime-type missing error, and otherwise does not work.
Existing application code libraries which currently work fine in the JVM also seem to fail in the same way within Nashorn.
However, loading files via getClassLoader().getResource() does work so the problem seems to be when trying to access the network to any host, including localhost on a non-privileged port.
I've tried adjusting the security policy to be very lenient (permit all) both in java.policy and programatically via Policy.setPolicy() with a custom policy, but no apparent change.
Is it supposed to work right now? I have an critical path project which depends on this, so any insider help would most appreciated.