You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oro-dev@jakarta.apache.org by bu...@apache.org on 2001/04/18 20:28:50 UTC
[Bug 1375] New - beginOffset and endOffset are throwing NullPointerExceptions
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1375
*** shadow/1375 Wed Apr 18 11:28:49 2001
--- shadow/1375.tmp.20755 Wed Apr 18 11:28:49 2001
***************
*** 0 ****
--- 1,23 ----
+ +============================================================================+
+ | beginOffset and endOffset are throwing NullPointerExceptions |
+ +----------------------------------------------------------------------------+
+ | Bug #: 1375 Product: ORO |
+ | Status: NEW Version: 2.0.2 |
+ | Resolution: Platform: PC |
+ | Severity: Normal OS/Version: |
+ | Priority: Medium Component: Main |
+ +----------------------------------------------------------------------------+
+ | Assigned To: oro-dev@jakarta.apache.org |
+ | Reported By: mikeo@medifor.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ Perl5Util.beginOffset(0)and Perl5Util.endOffset(0) throw NullPointerExceptions
+ with the following regex's. These functions should return -1 on failure and the
+ documentation doesn't mention that they throw NullPointerExceptions.
+
+ "/[a-zA-Z]{3,10} [0-9]{1,2}\\, [0-9]{2,4}/",//April 1, 2001
+ "/[0-9]{1,2}-[0-9]{1,2}-[0-9]{2,4}/",//04-01-2001
+ "/[0-9]{1,2}\\/[0-9]{1,2}\\/[0-9]{2,4}/"//04/01/2001