bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug classpath/22751] Cached encoder/decoder in Charset not checked to s


From: gcc-bugzilla at gcc dot gnu dot org
Subject: [Bug classpath/22751] Cached encoder/decoder in Charset not checked to see if its for right Charset!
Date: 16 Oct 2005 01:27:00 -0000

The Charset class has static CharsetEncoder and CharsetDecoder instnaces which
are used in the implementations of encode and decode on the Charset class.
However if you do the following
   Charset.forName("charseta").decode(bytes)
   Charset.forName("charsetb").decode(bytes)
then the second decode happens with the decoder for "charseta". Either the
decoder should not be cached, or it needs to be checked to see it it is for the
right charset.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22751





reply via email to

[Prev in Thread] Current Thread [Next in Thread]