<Beans Dev> [9] Review Request: 8136382 SimpleBeanInfo.loadImage succeeds when running with a security manager

Sergey Bylokhov Sergey.Bylokhov at oracle.com
Tue Feb 9 15:45:44 UTC 2016


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

-- 
Best regards, Sergey.


More information about the beans-dev mailing list