You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Oliver Deakin (JIRA)" <ji...@apache.org> on 2006/05/03 13:49:46 UTC
[jira] Updated: (HARMONY-435)
DecimalFormatSymbolsTest.test_RIHarmony_compatible() passes or fails
depending on location of resource
[ http://issues.apache.org/jira/browse/HARMONY-435?page=all ]
Oliver Deakin updated HARMONY-435:
----------------------------------
Attachment: DecimalFormatSymbolsTest_create_valid_uri.diff
Attached patch as described above.
> DecimalFormatSymbolsTest.test_RIHarmony_compatible() passes or fails depending on location of resource
> ------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-435
> URL: http://issues.apache.org/jira/browse/HARMONY-435
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Oliver Deakin
> Priority: Trivial
> Attachments: DecimalFormatSymbolsTest_create_valid_uri.diff
>
> The test method test.java.org.apache.harmony.text.tests.java.text.DecimalFormatSymbolsTest.test_RIHarmony_compatible() attempts to load the resource DecimalFormatSymbols.ser.
> However if this file is in a location whose full path contains a space character (e.g. "c:\program files\<whatever>") the test case will fail. This is caused by the test using the URI.create(String) method. URI.create() expects the string it takes as a parameter to already be in valid URI form, which includes all space characters being quoted as %20. The test currently passes in the path with no quoting of space characters, which causes an exception to be thrown and the test to fail.
> I will attach a patch for the test that makes the trivial fix of using one of URI's constructors that automatically converts the string to a valid URI, quoting any space it finds.
--
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