From: aclement Date: Tue, 10 Feb 2004 17:16:33 +0000 (+0000) Subject: Yes yes, I broke the build. The performance code had a 1.4 API in it (split()) which... X-Git-Tag: v_preCompileLoopAlteration~41 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8555cabe0c41e204aad4dac0c5c6236dc8144e7d;p=aspectj.git Yes yes, I broke the build. The performance code had a 1.4 API in it (split()) which I am now removing. --- diff --git a/org.aspectj.ajdt.core/testsrc/RunWeaveTests.java b/org.aspectj.ajdt.core/testsrc/RunWeaveTests.java index 9907e280e..2ad653ddc 100644 --- a/org.aspectj.ajdt.core/testsrc/RunWeaveTests.java +++ b/org.aspectj.ajdt.core/testsrc/RunWeaveTests.java @@ -124,7 +124,7 @@ public class RunWeaveTests { } /* Compatibility with JDK 1.3.1 */ - private static String[] split (String s) { + public static String[] split (String s) { List list = new ArrayList(); StringTokenizer st = new StringTokenizer(s," "); while (st.hasMoreTokens()) { diff --git a/org.aspectj.ajdt.core/testsrc/WeaveTests.java b/org.aspectj.ajdt.core/testsrc/WeaveTests.java index d40c11c90..4c27fd26d 100644 --- a/org.aspectj.ajdt.core/testsrc/WeaveTests.java +++ b/org.aspectj.ajdt.core/testsrc/WeaveTests.java @@ -485,7 +485,7 @@ public class WeaveTests { "-argfile " + OUTPUT_PACKAGE + File.separatorChar + "build.lst"; // split method creates a String array delimited on a space - String[] parsedArgs = ajcargs.split(" "); + String[] parsedArgs = RunWeaveTests.split(ajcargs); long start = System.currentTimeMillis(); @@ -497,6 +497,7 @@ public class WeaveTests { return stop - start; } + public static void weaveAspects(String adviceType) throws IOException { adviceType = adviceType.toLowerCase(); @@ -583,7 +584,7 @@ public class WeaveTests { "-outjar " + OUTPUT_PACKAGE + File.separatorChar + adviceName + ".jar " + OUTPUT_PACKAGE + File.separatorChar + adviceName + ".aj"; - String[] parsedArgs = ajcargs.split(" "); + String[] parsedArgs = RunWeaveTests.split(ajcargs); long start = System.currentTimeMillis();