[ipv6] RFR: 8224256: test/jdk/java/security/SecureClassLoader/DefineClass.java hardcodes 127.0.0.1

Arthur Eubanks aeubanks at google.com
Wed May 22 17:28:35 UTC 2019


On Wed, May 22, 2019 at 7:13 AM Daniel Fuchs <daniel.fuchs at oracle.com>
wrote:

> Hi Arthur,
>
>    18 // For IPSupport
>    19 grant {
>    20     permission java.net.SocketPermission "localhost:0",
> "listen,resolve";
>    21     permission java.util.PropertyPermission
> "java.net.preferIPv4Stack", "read";
>    22 };
>
> It might be better if these permissions were granted to the
> library only.
>
Done.

>
>    90     // Base64 encoded bytes of simple class: "package bar2; public
> class Bar2 {}"
>    91     private final static String BAR2_CLASS =
>    92
> "yv66vgAAADQADwoAAwAMBwANBwAOAQAGPGluaXQ+AQADKClWAQAEQ29kZQEA" +
> ...
>
> Which version of javac did you use to generate the class?
> I wonder if it should have the same major/minor version than
> the other classes in that file. But maybe it doesn't matter.
>
I believe I used a JDK 8 javac. But yes I don't think it should matter.

>
> best regards,
>
> -- daniel


New webrev:  http://cr.openjdk.java.net/~aeubanks/8224256/webrev.01/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.java.net/pipermail/net-dev/attachments/20190522/39512b19/attachment.html>


More information about the net-dev mailing list