Sorry if this is already posted. But this is one important thing to note:
DateFormat is not thread safe. Using it in two parallel threads cause corruption of data or runtime exception. Use jodatime where ever you can.
Acumen,
http://lucid-forums.com
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
Sorry if this is already posted. But this is one important thing to note:
DateFormat is not thread safe. Using it in two parallel threads cause corruption of data or runtime exception. Use jodatime where ever you can.
Acumen,
http://lucid-forums.com
Indeed, this is what the API tells you.
I personally like using Joda-Time as well, its great. I believe the current Java API for dates is somewhat behind its time, hehe.Date formats are not synchronized. It is recommended to create separate format instances for each thread. If multiple threads access a format concurrently, it must be synchronized externally.
// Json
Yeah, I agree with that.
Acumen,
Lucid forums
I thought this was a tip, just curious why is this moved to 'New to Java'.
Acumen,
Lucid forums
Please use [highlight=Java] code [/highlight] tags when posting your code.
Forum Tip: Add to peoples reputationby clicking the
button on their useful posts.
I think that makes sense. I really appreciate the effort you are putting in maintaining these forums.