Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4935930
Votes 1
Synopsis sun.nio.cs.MS1252.Encoder#canEncode is not properly implemented
Category java:char_encodings
Reported Against 1.4.2_01
Release Fixed 1.5(tiger-b30)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs
Submit Date 10-OCT-2003
Description
The method always seems to return true no matter what the input char is.
This is clearly wrong.
  xxxxx@xxxxx   2003-10-10
  xxxxx@xxxxx   2003-10-10
Work Around
Testing the obtained Charset object with "sun.nio.cs.MS1252" and use a custom CharsetEncoder.
The workaround is really ugly.
  xxxxx@xxxxx   2003-10-10
  xxxxx@xxxxx   2003-10-10
Evaluation
The submitter is correct. The current implementation isn't correct in that it shouldn't
override the default canEncode() method inherited from sun.nio.cs.SingleByteEncoder.

  xxxxx@xxxxx   2003-10-13
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang