On 09/02/2016 16:45, Sergey Bylokhov wrote:
Hello.

Please review the fix for jdk9.
This fix revert back the fix for JDK-8131926:
http://hg.openjdk.java.net/jdk9/jdk9/jdk/rev/58fde919b6c3
http://mail.openjdk.java.net/pipermail/beans-dev/2015-August/000178.html

In the fix of JDK-8131926 we replaced getResource to getResourceAsStream, because "resources are private to a named module and as things stand, there isn't a way to a URL to a resource in a named module." But in current implementation "Class::getResource" will returns a URL to a resource in a module, when invoked from code within that module (0fbe4c72638a). And it also apply security checks.

Bug: https://bugs.openjdk.java.net/browse/JDK-8136382
Webrev can be found at: http://cr.openjdk.java.net/~serb/8136382/webrev.00

Sergey - have you consider clarifying the javadoc as part of this change?

-Alan

Reply via email to