I don't know whether a WeakHashMap works when the keys are Class objects (as Class objects aren't exactly run-of the-mill).

This fix might work, or it might break things somewhere else. The [logging] team may be able to comment on WeakHashMap.

ATM, I'm against fixing it in a rush.

Stephen


Henri Yandell wrote:
Any thoughts on this issue?

https://issues.apache.org/jira/browse/LANG-262

Says that the cEnumClasses Hashmap in the Enum class is keeping a
ClassLoader from being garbage collected and that switching it to a
WeakHashMap should fix it.

Seems fair to me, and an easy fix for 2.2; but not something I can
think of simple ways to unit test.

Any thoughts?

Hen

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to