36 Commits

Author SHA1 Message Date
Xueming Shen
81f4c6102a 8030179: java/nio/Buffer/Chars.java, testcases seems all pass but jtreg/testng failed with java.lang.AssertionError
Fix the surrogate corner case in SingleByte charset encoder

Reviewed-by: psandoz, alanb
2015-02-09 11:37:56 -08:00
Richard Warburton
a065473cfc 4774077: Use covariant return types in the NIO buffer hierarchy
Reviewed-by: psandoz, alanb, mr, darcy
2014-10-29 14:10:34 +01:00
Ivan Gerasimov
a9f575446d 8037866: Replace the Fun class in tests with lambdas
Reviewed-by: martin
2014-06-02 19:49:57 +04:00
Xueming Shen
8decb5de90 8039751: UTF-8 decoder fails to handle some edge cases correctly
To update decoder.isMalformed4_2() to correctly detect out of range 2nd byte

Reviewed-by: alanb
2014-04-12 14:38:50 -07:00
Lana Steuck
657b9db1ba 8029235: Update copyright year to match last edit in jdk8 jdk repository for 2013
Updated files with 2011, 2012 and 2013 years according to the file's last updated date

Reviewed-by: tbell, lancea, chegar
2013-12-26 12:04:16 -08:00
Yiming Wang
aa384aeaaf 8022879: TEST_BUG: sun/nio/cs/MalformedSurrogates.java fails intermittently
Reviewed-by: martin
2013-12-19 18:13:19 +00:00
Sergey Bylokhov
9ab430a0d2 8027696: Incorrect copyright header in the tests
Reviewed-by: alanb, malenkov, mullan
2013-11-12 20:24:25 +04:00
Xueming Shen
caf263e5b0 8008386: (cs) Unmappable leading should be decoded to replacement
Updated the unmappable/malformed detecting handling for db charsets

Reviewed-by: naoto
2013-10-21 18:22:39 -07:00
Alan Bateman
430592a30e 7197491: update copyright year to match last edit in jdk8 jdk repository
Reviewed-by: chegar, ksrini
2012-11-02 15:50:11 +00:00
Xueming Shen
e55dd14a45 7186829: test/sun/nio/cs/OLD/JIS_X_0201_OLD.java failed in jdk8 TL nightly build
Fixed the test case

Reviewed-by: alanb
2012-07-25 12:47:28 -07:00
Xueming Shen
b9fa2e4fb9 6653797: Reimplement JDK charset repository charsets.jar
Migrated all jis based charsets to new implementation

Reviewed-by: okutsu
2012-07-24 12:17:39 -07:00
Xueming Shen
50e0a37ed9 7183053: Optimize DoubleByte charset for String.getBytes()/new String(byte[])
DoubleByte implements sun/nio.cs/ArrayDe/Encoder interface

Reviewed-by: alanb
2012-07-17 19:57:31 -07:00
Xueming Shen
d4817a1e4f 7152690: Initialization error with charset SJIS_0213 when security manager is enabled
To use doPrivileged block to wrap the data reading code

Reviewed-by: alanb
2012-04-12 10:55:51 -07:00
Alan Bateman
3ecf3e0fa1 7152866: Tests not run because they are missing the @run tag
Reviewed-by: chegar, dholmes
2012-03-12 10:17:18 +00:00
Xueming Shen
b1408532df 7096080: UTF8 update and new CESU-8 charset
7082884: Incorrect UTF8 conversion for sequence ED 31
7082883: Incorrect UTF8 conversion for sequence fc 80 80 8f bf bf

Updated UTF8 and added CESU-8 to following the latest Standard

Reviewed-by: alanb
2011-11-07 13:46:02 -08:00
Xueming Shen
0ec73ca081 6237353: Remove sun.io package from j2se binary
Removed sun.io package and related test cases

Reviewed-by: alanb
2011-08-17 14:14:21 -07:00
Xueming Shen
371bd92aef 7040220: java/char_encodin Optimize UTF-8 charset for String.getBytes()/new String(byte[])
Implement sun.nio.cs.ArrayEn/Decoer in utf8

Reviewed-by: alanb
2011-05-02 11:42:52 -07:00
Xueming Shen
5423e4402e 6803681: RFE: Need new codeset converter for IBM Cp1364
Forward port the Cp1364

Reviewed-by: alanb
2011-03-16 12:16:00 -07:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Xueming Shen
860a7e1fc9 6415373: (cs) UnicodeEncoder emits BOM when there are no bytes to encode
No BOM output if no byte to encode

Reviewed-by: alanb
2010-12-08 12:54:43 -08:00
Xueming Shen
8aaa66c1f7 6217210: RFE: Support for Cp833 in 1.4.2
Forward port the Cp833 charset

Reviewed-by: poonam
2010-11-17 21:33:16 -08:00
Alan Bateman
670501c6c6 6963027: TEST_BUG: channels and buffer tests need to run in samevm mode
Reviewed-by: ohair, sherman, chegar
2010-06-23 20:19:29 +01:00
Xueming Shen
62854e9b81 6963156: TEST_BUG: Several tests under sun/nio/cs failed
Updated the test cases and removed them from ProblemList.txt

Reviewed-by: alanb
2010-06-22 14:04:36 -04:00
Lana Steuck
fd45b4188c Merge 2010-05-28 12:10:14 -07:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Pavel Tisnovsky
fb9c4505a1 6951887: Wrong redirection useage in test sun/nio/cs/Test4200310.sh
Testcase correction.

Reviewed-by: sherman
2010-05-13 10:11:17 +02:00
Xueming Shen
efe409bf8b 6730652: CharsetEncoder.canEncode(char) returns incorrect values for some charsets
Override the canEncode() in ISO2022_CN_CNS

Reviewed-by: martin
2009-08-14 14:29:45 -07:00
Xueming Shen
3c65bb6343 6847092: (cs) CharsetEncoder.isLegalReplacement of US_ASCII behaves differently since
Updated the US_ASCII and ISO-8859-1 to fix the failure.

Reviewed-by: alanb, martin
2009-06-22 19:22:47 -07:00
Xueming Shen
721a90bda5 6299219: euro sign failed to be printed in Console on Localized Windows platform with GBK encoding
4891024: EUC-KR and JOHAB converters need to be updated to include two new characters
4287467: Character converter generator tool

Migrated some of the doublebyte charsets to the new implementation.

Reviewed-by: okutsu
2009-06-19 14:39:06 -07:00
Xueming Shen
f625a6d545 6843578: Re-implement IBM doublebyte charsets
6639450: IBM949C encoder modifies state of IBM949 encoder
6569191: Cp943 io converter returns U+0000 and U+FFFD for unconvertable character
6577466: Character encoder IBM970 throws a BufferOverflowException
5065777: CharsetEncoder canEncode() methods often incorrectly return false

Re-write 11 IBM doublebyte charsets. Thanks Ulf.Zibis for the codereview!

Reviewed-by: martin
2009-05-21 23:32:46 -07:00
Xueming Shen
15baf98a0a 6843079: Putback for the new EUC_TW is not complete
Putback the files missed in last putback

Reviewed-by: alanb
2009-05-19 16:03:02 -07:00
Xueming Shen
a1958b22ef 6831794: charset EUC_TW is 12.6% of the total size of charsets.jar
6229811: Several codepoints in EUC_TW failed in roundtrip conversion

Re-write EUC_TW charset to address the size and roundtrip issue.

Reviewed-by: alanb
2009-05-19 15:25:29 -07:00
Xueming Shen
3f0b988cfc 6636323: Optimize handling of builtin charsets
6636319: Encoders should implement isLegalReplacement(byte[] repl)

Optimized new String(byte[], cs/csn) and String.getBytes(cs/csn) for speed and memory consumption in singlebyte case.

Reviewed-by: alanb
2009-03-23 09:19:23 -07:00
Xueming Shen
790bc3042d 4849617: (cs)Revise Charset spec to allow '+' in names
Update the spec and code to accept '+' as a charset name character

Reviewed-by: alanb
2008-08-27 10:12:22 -07:00
Xueming Shen
630d73eb0a 4486841: UTF-8 decoder should adhere to corrigendum to Unicode 3.0.1
6636317: Optimize UTF-8 coder for ASCII input

Re-write the UTF-8 charset to obey the standard and improve the performance

Reviewed-by: alanb
2008-08-22 14:37:46 -07:00
Xueming Shen
dd2dfec9f5 6675856: Open charset tests
Moved non-confidiential test cased from closed repo to open repo

Reviewed-by: martin
2008-06-30 14:06:34 -07:00