summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoracolyer <acolyer>2004-09-07 14:23:45 +0000
committeracolyer <acolyer>2004-09-07 14:23:45 +0000
commit2e1ba4f2a7d7eba03b631167ad72ffbc324a9576 (patch)
treea79de5ac227911a78777f78cb62d833100b1f800
parent536d08ac4c44c180e99826469b28b53532be4b51 (diff)
downloadaspectj-2e1ba4f2a7d7eba03b631167ad72ffbc324a9576.tar.gz
aspectj-2e1ba4f2a7d7eba03b631167ad72ffbc324a9576.zip
static dependence on SimpleDateFormat had broken WeavingURLClassLoader
by a complex chain of events.
-rw-r--r--weaver/src/org/aspectj/weaver/Dump.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/weaver/src/org/aspectj/weaver/Dump.java b/weaver/src/org/aspectj/weaver/Dump.java
index c0a63d295..513affc07 100644
--- a/weaver/src/org/aspectj/weaver/Dump.java
+++ b/weaver/src/org/aspectj/weaver/Dump.java
@@ -38,8 +38,8 @@ public class Dump {
/* Format for unique filename based on date & time */
private static final String FILENAME_PREFIX = "ajcore";
- private static final DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
- private static final DateFormat timeFormat = new SimpleDateFormat("HHmmss.SSS");
+// private static final DateFormat dateFormat = new SimpleDateFormat("yyyyMMdd");
+// private static final DateFormat timeFormat = new SimpleDateFormat("HHmmss.SSS");
private static final String FILENAME_SUFFIX = "txt";
public static final String UNKNOWN_FILENAME = "Unknown";
@@ -280,8 +280,8 @@ public class Dump {
Date now = new Date();
fileName = FILENAME_PREFIX + "."
- + dateFormat.format(now) + "."
- + timeFormat.format(now) + "."
+ + new SimpleDateFormat("yyyyMMdd").format(now) + "."
+ + new SimpleDateFormat("HHmmss.SSS").format(now) + "."
+ FILENAME_SUFFIX;
try {
print = new PrintStream(new FileOutputStream(fileName),true);