jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 1375] New - beginOffset and endOffset are throwing NullPointerExceptions
Date Wed, 18 Apr 2001 18:28:50 GMT
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

Mime
View raw message