You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Sian January (JIRA)" <ji...@apache.org> on 2006/04/19 12:30:18 UTC
[jira] Created: (HARMONY-379) java.lang.String.replaceAll(String,
String) throws NullPointerException on any input
java.lang.String.replaceAll(String, String) throws NullPointerException on any input
------------------------------------------------------------------------------------
Key: HARMONY-379
URL: http://issues.apache.org/jira/browse/HARMONY-379
Project: Harmony
Type: Bug
Components: Classlib
Reporter: Sian January
As the title says really. If you try something like "Hello".replaceAll("lo", "p"); you get a NullPointerException. Stack trace included:
java.lang.NullPointerException
at java.lang.String.replaceAll(String.java:1711)
at tests.api.java.lang.StringTest.test_replaceAll(StringTest.java:659)
....
--
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
[jira] Commented: (HARMONY-379) java.lang.String.replaceAll(String,
String) throws NullPointerException on any input
Posted by "George Harley (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-379?page=comments#action_12375320 ]
George Harley commented on HARMONY-379:
---------------------------------------
Hi Sian,
Yes, adding the test to the String test class is on my TODO list. I'm working on fixing some other tests in that area just now so that String tests can be successfully included in the build and test cycle (they currently are not).
I'll wait until the String tests are working again with the new test case present before closing out this issue.
Best regards,
George
> java.lang.String.replaceAll(String, String) throws NullPointerException on any input
> ------------------------------------------------------------------------------------
>
> Key: HARMONY-379
> URL: http://issues.apache.org/jira/browse/HARMONY-379
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Sian January
>
> As the title says really. If you try something like "Hello".replaceAll("lo", "p"); you get a NullPointerException. Stack trace included:
> java.lang.NullPointerException
> at java.lang.String.replaceAll(String.java:1711)
> at tests.api.java.lang.StringTest.test_replaceAll(StringTest.java:659)
> ....
--
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
[jira] Resolved: (HARMONY-379) java.lang.String.replaceAll(String,
String) throws NullPointerException on any input
Posted by "George Harley (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-379?page=all ]
George Harley resolved HARMONY-379:
-----------------------------------
Resolution: Cannot Reproduce
Hi Sian,
I'm unable to recreate the described failure using a Harmony built from code at SVN revision 395251. The following unit test case works fine against both Harmoy and a 5.0 RI on Windows XP ...
public void testReplaceAll() throws Exception {
String str = new String("Hello");
assertEquals("Help", str.replaceAll("lo", "p"));
assertEquals("harmful", "harmony".replaceAll("ony", "ful"));
}
Please can you supply some more information about your environment. Are you running on Win XP ?
Best regards,
George
> java.lang.String.replaceAll(String, String) throws NullPointerException on any input
> ------------------------------------------------------------------------------------
>
> Key: HARMONY-379
> URL: http://issues.apache.org/jira/browse/HARMONY-379
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Sian January
>
> As the title says really. If you try something like "Hello".replaceAll("lo", "p"); you get a NullPointerException. Stack trace included:
> java.lang.NullPointerException
> at java.lang.String.replaceAll(String.java:1711)
> at tests.api.java.lang.StringTest.test_replaceAll(StringTest.java:659)
> ....
--
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
[jira] Commented: (HARMONY-379) java.lang.String.replaceAll(String,
String) throws NullPointerException on any input
Posted by "Sian January (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/HARMONY-379?page=comments#action_12375315 ]
Sian January commented on HARMONY-379:
--------------------------------------
Hi George,
Thanks for taking a look - it looks like this has been fixed since I found the bug. I did a rebuild of Harmony and the test now passes. It might still be good to add the test to the suite though if you have time as I don't think there is one for replaceAll at the moment.
Thanks,
Sian
> java.lang.String.replaceAll(String, String) throws NullPointerException on any input
> ------------------------------------------------------------------------------------
>
> Key: HARMONY-379
> URL: http://issues.apache.org/jira/browse/HARMONY-379
> Project: Harmony
> Type: Bug
> Components: Classlib
> Reporter: Sian January
>
> As the title says really. If you try something like "Hello".replaceAll("lo", "p"); you get a NullPointerException. Stack trace included:
> java.lang.NullPointerException
> at java.lang.String.replaceAll(String.java:1711)
> at tests.api.java.lang.StringTest.test_replaceAll(StringTest.java:659)
> ....
--
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