jdk.xml.bind uses Field.setAccessible to get the default authenticator.
It should be updated to use Authenticator.getDefault()
Comments
Here is a possible webrev: http://cr.openjdk.java.net/~dfuchs/webrev_8169783/webrev.00/
28-11-2016
After further analysis I see that the method that tries to get the default authenticator instance will simply return null if it fails to get it. So unless there are fine-grained unit tests for com.sun.istack.internal.tools.DefaultAuthenticator, it's unlikely that the issue will be caught by any test.
28-11-2016
Do we know if any JAXB tests fail because of this?