From 2e1ba4f2a7d7eba03b631167ad72ffbc324a9576 Mon Sep 17 00:00:00 2001 From: acolyer Date: Tue, 7 Sep 2004 14:23:45 +0000 Subject: [PATCH] static dependence on SimpleDateFormat had broken WeavingURLClassLoader by a complex chain of events. --- weaver/src/org/aspectj/weaver/Dump.java | 8 ++++---- 1 file 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); -- 2.39.5