JDK-8022450 : Fix deprecation warnings in UCharacterDirection.java
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.net
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-08-06
  • Updated: 2022-07-05
  • Resolved: 2022-07-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdResolved
Related Reports
Relates :  
Relates :  
Relates :  
Description
/w/lthudson/hudson-data/jobs/jdk8-lt-jdk-build/workspace/jdk/src/share/classes/sun/net/idn/UCharacterDirection.java:49: warning: [deprecation] sun.net.idn.UCharacterEnums in sun.net.idn has been deprecated
final class UCharacterDirection implements UCharacterEnums.ECharacterDirection {
                                           ^
/w/lthudson/hudson-data/jobs/jdk8-lt-jdk-build/workspace/jdk/src/share/classes/sun/net/idn/UCharacterDirection.java:49: warning: [deprecation] sun.net.idn.UCharacterEnums.ECharacterDirection in sun.net.idn.UCharacterEnums has been deprecated
final class UCharacterDirection implements UCharacterEnums.ECharacterDirection {
                                                          ^
Comments
Since JDK-8022474 has been resolved, @SuppressWarnings("deprecation") should be added to UCharacterDirection.
01-05-2014

Try to add @SuppressWarnings("deprecation") to the class scope, but warnings are still produced in the compilation, which seems a bug in javac, JDK-8022474 .
06-08-2013

I have logged a bug, JDK-8022473, to request replacements for the deprecated class/interface UCharacterEnums.ECharacterDirection.
06-08-2013