summaryrefslogtreecommitdiffstats
path: root/bridge/src
diff options
context:
space:
mode:
authoraclement <aclement>2004-08-04 12:09:29 +0000
committeraclement <aclement>2004-08-04 12:09:29 +0000
commitba6b00472c8964dd0a6dd4274698241d790b695e (patch)
treec123ad876755155f635965878531f01717a009dd /bridge/src
parentd7080dcd31e55ffeb5a2885f9db1a7927fc8eb39 (diff)
downloadaspectj-ba6b00472c8964dd0a6dd4274698241d790b695e.tar.gz
aspectj-ba6b00472c8964dd0a6dd4274698241d790b695e.zip
Will this fix the build?
Diffstat (limited to 'bridge/src')
-rw-r--r--bridge/src/org/aspectj/bridge/WeaveMessage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/src/org/aspectj/bridge/WeaveMessage.java b/bridge/src/org/aspectj/bridge/WeaveMessage.java
index e15abeae7..3f2e72297 100644
--- a/bridge/src/org/aspectj/bridge/WeaveMessage.java
+++ b/bridge/src/org/aspectj/bridge/WeaveMessage.java
@@ -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]);
}