commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell" <>
Subject Re: LANG-334 Enum is not thread-safe
Date Sat, 28 Jul 2007 03:07:08 GMT
Thanks Jason,

Could you attach the patch to the JIRA issue? The Apache mailing lists
are pretty aggressive on stripping attachments. I restarted JIRA this
morning, and that seemed to take care of the NPEs, though I don't know
why they were happening, it was due to an NPE in the JIRA Permission
system and that's not one I've seen before.

The Commons website suggests a jira patch or an email; that's a very
dated bit of advice that I'll be removing as a part of


On 7/27/07, Jason Madden <> wrote:
> (I was utterly unsuccessful this morning in posting a comment or a
> patch to the issue in jira, receiving JS errors and server-side
> NullPointerExceptions all over the place, so please forgive me for
> emailing the list directly.)
> We have also encountered the issue of thread safety in the Enum
> class. In our case, it shows up when running in a application server
> where there are many threads and other applications are loading
> classes at arbitrary times.
> I've attached the patch that we are using which seems to correct this
> issue for us. Rather than synchronize all access to the cEnumClasses
> map (which seems like it would be rather expensive and highly
> contended), we adopted a copy-on-write approach that only involves
> synchronization when new classes are loaded.
> Jason
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message