]> source.dussan.org Git - aspectj.git/commitdiff
Will this fix the build?
authoraclement <aclement>
Wed, 4 Aug 2004 12:09:29 +0000 (12:09 +0000)
committeraclement <aclement>
Wed, 4 Aug 2004 12:09:29 +0000 (12:09 +0000)
bridge/src/org/aspectj/bridge/WeaveMessage.java

index e15abeae7a41c6eeb7396aae591641afe783b25f..3f2e722978a7eb7112a12af9a5bf8a5fae5b66ec 100644 (file)
@@ -51,7 +51,7 @@ public class WeaveMessage extends Message {
          String[] inserts) {
                StringBuffer str = new StringBuffer(kind.getMessage());
                int pos = -1;
-               while ((pos=str.indexOf("%"))!=-1) {
+               while ((pos=new String(str).indexOf("%"))!=-1) {
                        int n = Character.getNumericValue(str.charAt(pos+1));
                        str.replace(pos,pos+2,inserts[n-1]);
                }