JDK-8169783 : jdk.xml.bind should use Authenticator.getDefault()
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxb
  • Affected Version: 9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2016-11-16
  • Updated: 2017-02-10
  • Resolved: 2017-01-17
Related Reports
Relates :  
Relates :  
Description
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?
27-11-2016