JDK-4954008 : Convert use of old sun.io APIs into new java.nio.charset APIs
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.5.1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-11-13
  • Updated: 2003-11-14
  • Resolved: 2003-11-14
Related Reports
Duplicate :  
Relates :  
Description
In Mustang, we plan to remove sun.io.  The contents of this internal API have
been deprecated in favor of java.nio.charset which was introduced in Merlin.
As of Tiger, the old sun.io converters redirect to the new API.  Use of
the old converters will result in a deprecation warning at compile time.

The following list of files from the j2se workspace have been identified as
depending on sun.io:

   src/share/classes/sun/print/PSPrinterJob.java

   src/share/classes/sun/font/CMap.java
   src/solaris/classes/sun/font/XMap.java
   src/solaris/classes/sun/font/NativeGlyphMapper.java

These files (and any others which use sun.io) need to be converted to use the
new java.nio APIs in Dragonfly so that sun.io can be deleted in an early
promotion of Mustang.

  src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java

Via grep and eyeball examination, I have been unable to determine why this
file requires the import of sun.io.  The fix for this bug may be to simply
remove the unnecessary import.

-- iag@sfbay 2003-11-13

Comments
EVALUATION Need to do this for dragon. ###@###.### 2003-11-13 =================================== 3 of the 5 files listed here call into the converter classes listed in 4954012 So these two bugs cannot be fixed independently. They must be fixed together, ie in the same putback. Since this constitutes the vast majority of the work here I am closing this as a dup of 4954012. ###@###.### 2003-11-13 ===============================
13-11-2003