cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cziege...@apache.org
Subject svn commit: r411108 - /cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java
Date Fri, 02 Jun 2006 09:33:26 GMT
Author: cziegeler
Date: Fri Jun  2 02:33:25 2006
New Revision: 411108

URL: http://svn.apache.org/viewvc?rev=411108&view=rev
Log:
Fix recently introduced bug

Modified:
    cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java

Modified: cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java
URL: http://svn.apache.org/viewvc/cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java?rev=411108&r1=411107&r2=411108&view=diff
==============================================================================
--- cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java
(original)
+++ cocoon/trunk/core/cocoon-bootstrap/src/main/java/org/apache/cocoon/classloader/WildcardHelper.java
Fri Jun  2 02:33:25 2006
@@ -204,6 +204,9 @@
                 if ( buffpos != buff.length ) {
                     int startpos = buffpos - (charpos - exprpos);
                     while ( buffpos != buff.length ) {
+                        if ( exprpos == charpos ) {
+                            return false;
+                        }
                         buffpos -= (charpos - exprpos);
                         buffpos++;
                         offset = indexOfArray (expr, exprpos, charpos, buff, buffpos);
@@ -283,7 +286,7 @@
             throw new IllegalArgumentException ("rend < rpos");
         // If we need to match a zero length string return current dpos
         if (rend == rpos)
-            return (d.length); //?? dpos?
+            return d.length; //?? dpos?
         // If we need to match a 1 char length string do it simply
         if ((rend - rpos) == 1) {
             // Search for the specified character



Mime
View raw message