From: acolyer Date: Tue, 7 Sep 2004 14:23:45 +0000 (+0000) Subject: static dependence on SimpleDateFormat had broken WeavingURLClassLoader X-Git-Tag: V1_2_1~64 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=2e1ba4f2a7d7eba03b631167ad72ffbc324a9576;p=aspectj.git static dependence on SimpleDateFormat had broken WeavingURLClassLoader by a complex chain of events. --- 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);