jakarta-oro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 14488] - toString() on Perl5Util throws null pointer exception
Date Thu, 14 Nov 2002 00:38:41 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14488>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=14488

toString() on Perl5Util throws null pointer exception

dfs@apache.org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED



------- Additional Comments From dfs@apache.org  2002-11-14 00:38 -------
The problem report is unclear.  It refers to "the practice ... in ORO classes",
but only Perl5Util throws a NullPointerException if toString() is called
when there is no match.  Perl5Util has to honor the MatchResult interface.
Returning Object.toString() violate the MatchResult contract.  However, it is
undesirable to throw an exception when MatchResult requires group() to return
null when there is no matched group and toString() returns group(0).  Therefore,
Perl5Util.toString() has been changed to return null if there is no match,
which is the original intended behavior.

--
To unsubscribe, e-mail:   <mailto:oro-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:oro-dev-help@jakarta.apache.org>


Mime
View raw message