aboutsummaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2004-02-10 17:16:33 +0000
committeraclement <aclement>2004-02-10 17:16:33 +0000
commit8555cabe0c41e204aad4dac0c5c6236dc8144e7d (patch)
treea3dc2d24892250950fdeb4057bbc93773a51d8a6 /org.aspectj.ajdt.core
parent91cb850e1fe42cf1f5627571a7a488a4f6f1d330 (diff)
downloadaspectj-8555cabe0c41e204aad4dac0c5c6236dc8144e7d.tar.gz
aspectj-8555cabe0c41e204aad4dac0c5c6236dc8144e7d.zip
Yes yes, I broke the build. The performance code had a 1.4 API in it (split()) which I am now removing.
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r--org.aspectj.ajdt.core/testsrc/RunWeaveTests.java2
-rw-r--r--org.aspectj.ajdt.core/testsrc/WeaveTests.java5
2 files changed, 4 insertions, 3 deletions
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();