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 23:25:16 UTC

[Bug 1346] Changed - substitue gives strange result

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

*** shadow/1346	Mon Apr 16 12:26:53 2001
--- shadow/1346.tmp.24224	Wed Apr 18 14:25:16 2001
***************
*** 2,11 ****
  | substitue gives strange result                                             |
  +----------------------------------------------------------------------------+
  |        Bug #: 1346                        Product: ORO                     |
! |       Status: NEW                         Version: 2.0.2                   |
! |   Resolution:                            Platform: PC                      |
  |     Severity: Normal                   OS/Version: Linux                   |
! |     Priority:                           Component: Main                    |
  +----------------------------------------------------------------------------+
  |  Assigned To: oro-dev@jakarta.apache.org                                   |
  |  Reported By: dshriver@sharemedia.com                                      |
--- 2,11 ----
  | substitue gives strange result                                             |
  +----------------------------------------------------------------------------+
  |        Bug #: 1346                        Product: ORO                     |
! |       Status: RESOLVED                    Version: 2.0.2                   |
! |   Resolution: INVALID                    Platform: PC                      |
  |     Severity: Normal                   OS/Version: Linux                   |
! |     Priority: High                      Component: Main                    |
  +----------------------------------------------------------------------------+
  |  Assigned To: oro-dev@jakarta.apache.org                                   |
  |  Reported By: dshriver@sharemedia.com                                      |
***************
*** 175,178 ****
  [^\x80-\xff\n\015\[\]]|\[^\x80-\xff])* \])[\040\t]* (?: \([^\x80-\xff\n\015()]*
  (?: (?:\[^\x80-\xff]|\([^\x80-\xff\n\015()]*
  (?:\[^\x80-\xff][^\x80-\xff\n\015()]* )*\))[^\x80-\xff\n\015()]* )*\)[\040\t]*
! )*)*>)
--- 175,193 ----
  [^\x80-\xff\n\015\[\]]|\[^\x80-\xff])* \])[\040\t]* (?: \([^\x80-\xff\n\015()]*
  (?: (?:\[^\x80-\xff]|\([^\x80-\xff\n\015()]*
  (?:\[^\x80-\xff][^\x80-\xff\n\015()]* )*\))[^\x80-\xff\n\015()]* )*\)[\040\t]*
! )*)*>)
! 
! ------- Additional Comments From dfs@apache.org  2001-04-18 14:25 -------
! This bug doesn't appear to be valid.  It looks like all of the parentheses in
! the expression in question are non-capturing parentheses (e.g., (?: )), which
! would explain why the matched groups are not accessible.  However, it is
! important to note that Perl 5.003 and the current Perl5Matcher implementation
! save the last match of a parenthesized group even if the match is empty and
! the previous match for that group was non-empty. For example (.)* would
! result in $1 containing the empty string.  Later version of Perl changed this
! behavior and returned the last non-empty match.  Eventually this newer
! behavior will make it's way into jakarta-oro.
! 
! This bug should be kept open until the original reporter confirms that the
! non-capturing parentheses were indeed the cause of the problem, rather than
! an actual bug.