Project: AspectJ
Bug 155213 [ltw] can get into a state with the Version static initializer
Reported: 2006-08-25 08:34:30 | Status: resolved fixed

The static initializer in Version that parses the time_text string and turns it into a long field seems to sometimes get loadtime weaving into a state - touching DateFormatters early on is always a pain, so I'm moving it to be processed on first reference. I could take it a step further ... if WeaverStateInfo didn't write out the time (it doesnt read it back in!!) it would never be used at all in normal processing - potentially saving us from loading a bunch of underpinning junk to do the formatting...

Files changed in fix:
ajde/src/org/aspectj/ajde/ui/swing/OptionsFrame.java bridge/src/org/aspectj/bridge/Version.java bridge/testsrc/org/aspectj/bridge/VersionTest.java weaver/src/org/aspectj/weaver/AjAttribute.java