harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r418792 - /incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java
Date Mon, 03 Jul 2006 15:48:14 GMT
Author: tellison
Date: Mon Jul  3 08:48:13 2006
New Revision: 418792

URL: http://svn.apache.org/viewvc?rev=418792&view=rev
Log:
Apply patch HARMONY-730 (java.util.regex.MatcherResult.group() throws unexpected IllegalStateException)

Modified:
    incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java

Modified: incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java?rev=418792&r1=418791&r2=418792&view=diff
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/regex/src/main/java/java/util/regex/MatchResultImpl.java
Mon Jul  3 08:48:13 2006
@@ -79,9 +79,11 @@
         MatchResultImpl res = new MatchResultImpl(this.string, this.leftBound,
                 this.rightBound, this.groupCount - 1, 0, 0);
 
-        System.arraycopy(groupBounds, 0, res.groupBounds, 0,
-                this.groupBounds.length);
-
+        res.valid = valid;
+        if (valid) {
+            System.arraycopy(groupBounds, 0, res.groupBounds, 0,
+                    this.groupBounds.length);
+        }
         return res;
     }
 



Mime
View raw message