Differences between revisions 2 and 3
Revision 2 as of 2006-03-10 08:57:00
Size: 3616
Comment:
Revision 3 as of 2009-09-20 21:55:36
Size: 3652
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
References: [http://issues.apache.org/jira/browse/HARMONY-96 HARMONY-96] Two new methods need to be implemented by java.nio.charset.Charset References: [[http://issues.apache.org/jira/browse/HARMONY-96|HARMONY-96]] Two new methods need to be implemented by java.nio.charset.Charset
Line 27: Line 27:
[http://issues.apache.org/jira/browse/HARMONY-45 HARMONY-45] Charset.isRegistered() method always return true [[http://issues.apache.org/jira/browse/HARMONY-45|HARMONY-45]] Charset.isRegistered() method always return true
Line 29: Line 29:
[http://issues.apache.org/jira/browse/HARMONY-64 HARMONY-64] java.nio.charset.Charset.forName(String name) does not throw UnsupportedCharsetException if invalid name starts with "x-" [[http://issues.apache.org/jira/browse/HARMONY-64|HARMONY-64]] java.nio.charset.Charset.forName(String name) does not throw UnsupportedCharsetException if invalid name starts with "x-"
Line 31: Line 31:
[http://issues.apache.org/jira/browse/HARMONY-67 HARMONY-67] java.nio.charset.Charset.decode(ByteBuffer) throws unexpected BufferOverflowException for UTF-16BE, UTF-16LE, UTF-16 charsets. [[http://issues.apache.org/jira/browse/HARMONY-67|HARMONY-67]] java.nio.charset.Charset.decode(ByteBuffer) throws unexpected BufferOverflowException for UTF-16BE, UTF-16LE, UTF-16 charsets.
Line 33: Line 33:
[http://issues.apache.org/jira/browse/HARMONY-68 HARMONY-68] java.nio.charset.Charset.isSupported(String charsetName) does not throw IllegalCharsetNameException for spoiled standard sharset name [[http://issues.apache.org/jira/browse/HARMONY-68|HARMONY-68]] java.nio.charset.Charset.isSupported(String charsetName) does not throw IllegalCharsetNameException for spoiled standard sharset name
Line 35: Line 35:
[http://issues.apache.org/jira/browse/HARMONY-99 HARMONY-99] java.nio.charset.CharsetDecoder.decode(ByteBuffer in) does not throw MalformedInputException when buffer's current position is not legal [[http://issues.apache.org/jira/browse/HARMONY-99|HARMONY-99]] java.nio.charset.CharsetDecoder.decode(ByteBuffer in) does not throw MalformedInputException when buffer's current position is not legal
Line 37: Line 37:
[http://issues.apache.org/jira/browse/HARMONY-113 HARMONY-113] java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName [[http://issues.apache.org/jira/browse/HARMONY-113|HARMONY-113]] java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName
Line 39: Line 39:
[http://issues.apache.org/jira/browse/HARMONY-124 HARMONY-124] java.nio.charset.CharsetDecoder doesn't throw CoderMalfunctionError exception when decodeLoop threw unexpected exception. [[http://issues.apache.org/jira/browse/HARMONY-124|HARMONY-124]] java.nio.charset.CharsetDecoder doesn't throw CoderMalfunctionError exception when decodeLoop threw unexpected exception.
Line 41: Line 41:
[http://issues.apache.org/jira/browse/HARMONY-137 HARMONY-137] CharsetDecoder should replace undefined bytes with replacement string [[http://issues.apache.org/jira/browse/HARMONY-137|HARMONY-137]] CharsetDecoder should replace undefined bytes with replacement string
Line 43: Line 43:
[http://issues.apache.org/jira/browse/HARMONY-141 HARMONY-141] Constructors of java.nio.charset.CharsetEncoder do not validate arguments [[http://issues.apache.org/jira/browse/HARMONY-141|HARMONY-141]] Constructors of java.nio.charset.CharsetEncoder do not validate arguments
Line 45: Line 45:
[http://issues.apache.org/jira/browse/HARMONY-142 HARMONY-142] java.nio.charset.CharsetDecoder constructor doesn't throw IllegalArgumentException when averageCharsPerByte is greater than maxCharsPerByte. [[http://issues.apache.org/jira/browse/HARMONY-142|HARMONY-142]] java.nio.charset.CharsetDecoder constructor doesn't throw IllegalArgumentException when averageCharsPerByte is greater than maxCharsPerByte.
Line 47: Line 47:
[http://issues.apache.org/jira/browse/HARMONY-148 HARMONY-148] java.nio.charset.CharsetDecoder: decode(in,out,endOfInput) method doesn't preserve replace string for successive decode invocation while "out" doesn't have engouh space for replace string. [[http://issues.apache.org/jira/browse/HARMONY-148|HARMONY-148]] java.nio.charset.CharsetDecoder: decode(in,out,endOfInput) method doesn't preserve replace string for successive decode invocation while "out" doesn't have engouh space for replace string.
Line 49: Line 49:
[http://issues.apache.org/jira/browse/HARMONY-149 HARMONY-149] java.nio.charset.Charset.forName(name) return different reference value when requiring the same Charset. [[http://issues.apache.org/jira/browse/HARMONY-149|HARMONY-149]] java.nio.charset.Charset.forName(name) return different reference value when requiring the same Charset.
Line 51: Line 51:
[http://issues.apache.org/jira/browse/HARMONY-150 HARMONY-150] java.nio.charset.Charset.decode(in) doesn't use the same cached decoder. [[http://issues.apache.org/jira/browse/HARMONY-150|HARMONY-150]] java.nio.charset.Charset.decode(in) doesn't use the same cached decoder.
Line 53: Line 53:
[http://issues.apache.org/jira/browse/HARMONY-170 HARMONY-170] java.nio.charset.CharsetEncoder.encode method does not handle the unexpected exception [[http://issues.apache.org/jira/browse/HARMONY-170|HARMONY-170]] java.nio.charset.CharsetEncoder.encode method does not handle the unexpected exception
Line 55: Line 55:
[http://issues.apache.org/jira/browse/HARMONY-173 HARMONY-173] java.nio.charset.CharsetEncoder.encode method does not reserve remaining bytes for next invocation. [[http://issues.apache.org/jira/browse/HARMONY-173|HARMONY-173]] java.nio.charset.CharsetEncoder.encode method does not reserve remaining bytes for next invocation.
Line 57: Line 57:
[http://issues.apache.org/jira/browse/HARMONY-182 HARMONY-182] java.nio.charset.Charset.encode(in) doesn't use the same cached encoder. [[http://issues.apache.org/jira/browse/HARMONY-182|HARMONY-182]] java.nio.charset.Charset.encode(in) doesn't use the same cached encoder.
Line 60: Line 60:
[http://issues.apache.org/jira/browse/HARMONY-123 HARMONY-123] Refactor: java.nio.charset.CharsetDecoder.decode [[http://issues.apache.org/jira/browse/HARMONY-123|HARMONY-123]] Refactor: java.nio.charset.CharsetDecoder.decode

Overview

NIO-Charset - java.nio.charset, java.nio.charset.spi

Status

Check the component development status page for the status of other ClassLibrary modules.

J2SE 1.4.2

Current code in classlib is assumed compliant with J2SE 1.4.2 specification.

Java SE 5.0

Paulex and Richard are working on this module.

New Methods in JSE 5.0

There are two new methods added since Java 5.0 1. public static Charset defaultCharset() 2. public final int compareTo(Charset that)

Status: Done.

References: HARMONY-96 Two new methods need to be implemented by java.nio.charset.Charset

Bug fixing

Here are some bugs reported again nio-charset

HARMONY-45 Charset.isRegistered() method always return true

HARMONY-64 java.nio.charset.Charset.forName(String name) does not throw UnsupportedCharsetException if invalid name starts with "x-"

HARMONY-67 java.nio.charset.Charset.decode(ByteBuffer) throws unexpected BufferOverflowException for UTF-16BE, UTF-16LE, UTF-16 charsets.

HARMONY-68 java.nio.charset.Charset.isSupported(String charsetName) does not throw IllegalCharsetNameException for spoiled standard sharset name

HARMONY-99 java.nio.charset.CharsetDecoder.decode(ByteBuffer in) does not throw MalformedInputException when buffer's current position is not legal

HARMONY-113 java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName

HARMONY-124 java.nio.charset.CharsetDecoder doesn't throw CoderMalfunctionError exception when decodeLoop threw unexpected exception.

HARMONY-137 CharsetDecoder should replace undefined bytes with replacement string

HARMONY-141 Constructors of java.nio.charset.CharsetEncoder do not validate arguments

HARMONY-142 java.nio.charset.CharsetDecoder constructor doesn't throw IllegalArgumentException when averageCharsPerByte is greater than maxCharsPerByte.

HARMONY-148 java.nio.charset.CharsetDecoder: decode(in,out,endOfInput) method doesn't preserve replace string for successive decode invocation while "out" doesn't have engouh space for replace string.

HARMONY-149 java.nio.charset.Charset.forName(name) return different reference value when requiring the same Charset.

HARMONY-150 java.nio.charset.Charset.decode(in) doesn't use the same cached decoder.

HARMONY-170 java.nio.charset.CharsetEncoder.encode method does not handle the unexpected exception

HARMONY-173 java.nio.charset.CharsetEncoder.encode method does not reserve remaining bytes for next invocation.

HARMONY-182 java.nio.charset.Charset.encode(in) doesn't use the same cached encoder.

Refector

HARMONY-123 Refactor: java.nio.charset.CharsetDecoder.decode

NIO-CHARSET (last edited 2009-09-20 21:55:36 by localhost)