RFD: The fate of sun.net.www.protocol.http.HttpURLConnection.setDefaultAuthenticator

Eirik Bjørsnøs eirbjo at gmail.com
Sun Mar 10 20:44:11 UTC 2024


Hi,

While investigating methods annotated as @Deprecated, but with
missing @deprecated javadoc tags, I discovered that
sun.net.w.p.h.HttpURLConnection.setDefaultAuthenticator has a trailing
period after its @deprecated tag, causing javac to not recognize it as such.

Some observations:

o The method has had this invalid @deprecated note since the initial load
o It was marked @Deprecated in Java 8
o It seems to be unused across the OpenJDK code base, including tests
o The class seems internal, given that its package is exported only
to java.security.jgss

What is the right step forward here?

0: Do nothing, nobody complained so far
1: Fix the @deprecated tag issue
2: Mark the @Deprecated forRemoval=true
3: Remove the method and the private static field now
4: Something else

Thanks,
Eirik.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/net-dev/attachments/20240310/231b5e59/attachment-0001.htm>


More information about the net-dev mailing list