]> source.dussan.org Git - aspectj.git/commitdiff
static dependence on SimpleDateFormat had broken WeavingURLClassLoader
authoracolyer <acolyer>
Tue, 7 Sep 2004 14:23:45 +0000 (14:23 +0000)
committeracolyer <acolyer>
Tue, 7 Sep 2004 14:23:45 +0000 (14:23 +0000)
by a complex chain of events.

weaver/src/org/aspectj/weaver/Dump.java

index c0a63d2953730721294d1c3a6c69c521f3314fd0..513affc07c020d8152f372fc05c0a9e5d3121a22 100644 (file)
@@ -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);