harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-113) java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName
Date Thu, 23 Feb 2006 13:53:42 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-113?page=comments#action_12367498 ] 

Tim Ellison commented on HARMONY-113:
-------------------------------------

Richard, 

The tests you provide above are dependent upon the HARMONY-57 code being incorporated into
the project.

Would you like to submit stand-alone test cases? or if you prefer I can mark this fix as dependent
upon HARMONY-57.

Regards,
Tim

> java.nio.charset.Charset should regard empty charset name properly as Illegal CharsetName
> -----------------------------------------------------------------------------------------
>
>          Key: HARMONY-113
>          URL: http://issues.apache.org/jira/browse/HARMONY-113
>      Project: Harmony
>         Type: Bug
>   Components: Classlib
>     Reporter: Richard Liang
>  Attachments: charset_patch.txt
>
> I think it's caused by the different between RI 1.4.2 and RI 5.0. Three test cases in
JIRA#57  should be updated accordingly.
> 	public void testIsSupported_EmptyString() {
> 		try {
> 			Charset.isSupported("");
>             fail("Should throw IllegalCharsetNameException!");
> 		} catch (IllegalCharsetNameException e) {
> 			//
> 		}
> 	}
> 	public void testConstructor_EmptyCanonicalName() {
> 		try {
> 			new MockCharset("", new String[0]);
>             fail("Should throw IllegalCharsetNameException!");
> 		} catch (IllegalCharsetNameException e) {
> 			//
> 		}
> 	}
> 	public void testConstructor_EmptyAliases() {
> 		try {
> 			new MockCharset("mockChar", new String[] { "" });
>             fail("Should throw IllegalCharsetNameException!");
> 		} catch (IllegalCharsetNameException e) {
> 			//
> 		}
> 	}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message