I assume that this is a multiple classloader problem. The same class has been loaded twice, but the new version does not replace the old one.
The 1.0 release of Lang uses the class name as the key into the map. That will fail in cases like this where there are two versions of the same class. The current CVS HEAD version of Enum has been changed to use the Class object as the key into the cEnumClasses map, and so should hopefully cope with this situation. Perhaps you could try that and report back? Stephen PS: Remember to prefix by the project name, eg. [lang] ----- Original Message ----- From: <[EMAIL PROTECTED]> > Hi - > > I am using the Enum class and JBoss 3. When I reload my ear, any use of my > Enums causes ClassCastExceptions. After looking at the code, there does not > appear to be a way to clear the map in Enum.cEnumClasses which keeps my out-of- > date Enum definitions. > > Has anyone else run into this problem and how did you work around it? > > Thanks... > Dorothy > > --------------------------------------------------------------------- > 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]
