Am 02.09.2011 15:00, schrieb Rémi Forax:

A way to solve the problem is to split AbstractCharsetProvider in two objects
i.e we should create a new object named CharsetProviderView that contains
deleteCharset() and charset() and provide this object as parameter of init.

The idea is that during the initialization (in init()) calling 
deleteCharset/charset is safe,
not after.

Calling deleteCharset/charset() from init() is completely superfluous.
See my implementation********(Replacement of AbstractCharsetProvider) from
*****Bug 100098* <https://bugs.openjdk.java.net/show_bug.cgi?id=100098> - Make sun.nio.cs.* charset objects light-weight**** :
https://bugs.openjdk.java.net/attachment.cgi?id=131&action=diff#a/src/share/classes/sun/nio/cs/ExternalCharsetProvider.java_sec1

-Ulf

Reply via email to