-
Bug
-
Resolution: Fixed
-
P3
-
1.2.0, 6
-
b26
-
generic
-
generic
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/solaris/native/sun/awt/awt_Font.c
src/windows/native/sun/windows/awt_Font.cpp
src/share/classes/sun/awt/FontConfiguration.java
src/share/classes/sun/awt/CharToByteSymbol.java
src/share/classes/sun/awt/FontDescriptor.java
src/share/classes/sun/awt/PlatformFont.java
src/solaris/classes/sun/awt/motif/ByteToCharX11CNS11643.java
src/solaris/classes/sun/awt/motif/ByteToCharX11GB2312.java
src/solaris/classes/sun/awt/motif/CharToByteX11CNS11643.java
src/solaris/classes/sun/awt/motif/ByteToCharX11KSC5601.java
src/solaris/classes/sun/awt/motif/CharToByteX11Dingbats.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB18030_0.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB2312.java
src/solaris/classes/sun/awt/motif/CharToByteX11GBK.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0201.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0208.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB18030_1.java
src/solaris/classes/sun/awt/motif/CharToByteX11SunUnicode_0.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0212.java
src/solaris/classes/sun/awt/motif/CharToByteX11KSC5601.java
src/solaris/classes/sun/awt/motif/CharToByteX11Johab.java
src/solaris/classes/sun/awt/motif/MFontConfiguration.java
src/windows/classes/sun/awt/windows/CharToByteWingDings.java
src/windows/classes/sun/awt/windows/WDefaultFontCharset.java
src/windows/classes/sun/awt/windows/WFontConfiguration.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.
-- iag@sfbay 2003-11-13
=======================
From 4954008 :
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
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
The latter of these is probably just a matter of removing a leftover
import statement. The majority of the rest of the sun.io usage in the
other files is calling into a number of the sun/awt/motif/* files
listed above, so if those files are converted then these files need
to be converted at the same time.
Also it may be interesting to identify the sun.io classes that are actually
used and delete the rest now (assuming that at least in part the motivation
for this migration is footprint).
Also a number of the files listed above, eg FontConfiguration.java
are i18n-owned files.
###@###.### 2003-11-13
============================
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/solaris/native/sun/awt/awt_Font.c
src/windows/native/sun/windows/awt_Font.cpp
src/share/classes/sun/awt/FontConfiguration.java
src/share/classes/sun/awt/CharToByteSymbol.java
src/share/classes/sun/awt/FontDescriptor.java
src/share/classes/sun/awt/PlatformFont.java
src/solaris/classes/sun/awt/motif/ByteToCharX11CNS11643.java
src/solaris/classes/sun/awt/motif/ByteToCharX11GB2312.java
src/solaris/classes/sun/awt/motif/CharToByteX11CNS11643.java
src/solaris/classes/sun/awt/motif/ByteToCharX11KSC5601.java
src/solaris/classes/sun/awt/motif/CharToByteX11Dingbats.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB18030_0.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB2312.java
src/solaris/classes/sun/awt/motif/CharToByteX11GBK.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0201.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0208.java
src/solaris/classes/sun/awt/motif/CharToByteX11GB18030_1.java
src/solaris/classes/sun/awt/motif/CharToByteX11SunUnicode_0.java
src/solaris/classes/sun/awt/motif/CharToByteX11JIS0212.java
src/solaris/classes/sun/awt/motif/CharToByteX11KSC5601.java
src/solaris/classes/sun/awt/motif/CharToByteX11Johab.java
src/solaris/classes/sun/awt/motif/MFontConfiguration.java
src/windows/classes/sun/awt/windows/CharToByteWingDings.java
src/windows/classes/sun/awt/windows/WDefaultFontCharset.java
src/windows/classes/sun/awt/windows/WFontConfiguration.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.
-- iag@sfbay 2003-11-13
=======================
From 4954008 :
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
src/share/classes/sun/java2d/HeadlessGraphicsEnvironment.java
The latter of these is probably just a matter of removing a leftover
import statement. The majority of the rest of the sun.io usage in the
other files is calling into a number of the sun/awt/motif/* files
listed above, so if those files are converted then these files need
to be converted at the same time.
Also it may be interesting to identify the sun.io classes that are actually
used and delete the rest now (assuming that at least in part the motivation
for this migration is footprint).
Also a number of the files listed above, eg FontConfiguration.java
are i18n-owned files.
###@###.### 2003-11-13
============================
- duplicates
-
JDK-4954008 Convert use of old sun.io APIs into new java.nio.charset APIs
- Closed
-
JDK-4073498 Motif encoding converters don't handle unknown characters as specified
- Closed
- relates to
-
JDK-4454622 (cs) Most character conversion clients do not use NIO API
- Resolved
-
JDK-6245971 Regression: IndexOutOfBoundsException when printing
- Closed
-
JDK-4948149 (cs) deprecate old sun.io converters
- Resolved
-
JDK-6255724 MappingTest failed: Turbolinux 10 mapping table still refers to the old sun.io converters
- Closed
(1 relates to)