harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sean Qiu (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-4472) [classlib][regex] Pattern.compile(String) throws unexpected NullPointerException
Date Mon, 16 Jul 2007 02:07:04 GMT
[classlib][regex] Pattern.compile(String) throws unexpected NullPointerException
--------------------------------------------------------------------------------

                 Key: HARMONY-4472
                 URL: https://issues.apache.org/jira/browse/HARMONY-4472
             Project: Harmony
          Issue Type: Bug
          Components: App-Oriented Bug Reports
         Environment: Windwos
            Reporter: Sean Qiu


Pattern.compile(String) throw unexpected NPE.

public class Test extends TestCase{
    public void testCompile(){
        Pattern.compile("a*.+");
    }
}

RI: pass
Hy: Throw NullPointerException,stack trace is

java.lang.NullPointerException
	at java.util.regex.JointSet.first(JointSet.java:87)
	at java.util.regex.Pattern.processSubExpression(Pattern.java:627)
	at java.util.regex.Pattern.processExpression(Pattern.java:396)
	at java.util.regex.Pattern.compileImpl(Pattern.java:31)
	at java.util.regex.Pattern.compile(Pattern.java:282)
	at java.util.regex.Pattern.compile(Pattern.java:1282)
	at regex.Test.testCompile(Test.java:9)
	at java.lang.reflect.AccessibleObject.invokeV(AccessibleObject.java:25)
	at java.lang.reflect.Method.invoke(Method.java:258)



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message