RFR: 8227721: NetworkInterfaceRetrievalTests.java should open the java.net package
Patrick Concannon
patrick.concannon at oracle.com
Wed Jul 17 16:52:11 UTC 2019
Hi,
Would it be possible to have my fix for JDK-8227721 reviewed?
test/jdk/java/net/NetworkInterface/NetworkInterfaceRetrievalTests.java
has been recently modified to perform a deep reflection (
setAccessible(true) ) on a non-public member
java.net.NetworkInterface::isBoundInetAddress. However, an illegal
access warning is generated by JTReg as a result.
This fix sets the test to run in 'othervm' mode, and gives 'open' access
to 'java.net' to the unnamed module (where the test lives).
Further information on this fix can be found here:
https://bugs.openjdk.java.net/browse/JDK-8227721
Webrev for fix: http://cr.openjdk.java.net/~aefimov/pconcann/8227721/00/
Kind regards,
Patrick
More information about the net-dev
mailing list