Is it finally time to remove the sun.io converters?
Alan Bateman
Alan.Bateman at oracle.com
Tue Jun 14 08:25:48 UTC 2011
Ulf Zibis wrote:
> As replacement for the 323 classes in original sun.io you could use my
> wrapper classes:
> http://java.net/projects/java-nio-charset-enhanced/sources/svn/show/trunk/src/sun/io/
>
>
> There remain only 8 classes.
I think this should be backup, as in a plan B. The JDK documentation has
always warned developers not to use sun.* APIs. javac has even emitted
warnings since the symbol file mechanism was added (jdk6?). In the case
of sun.io then there's been a better solution (java.nio.charsets) since
1.4 and so folks have had nearly 9 years to move. They will have at
least 10 or more years by the time that jdk8 ships. With modules coming
in jdk8 then it seems a good opportunity to move on this.
-Alan.
More information about the core-libs-dev
mailing list