Well, at leat not knowingly ... in terms of removing support for enums. Can you pleaese open a new Jira issue at http://jira.codehaus.org/browse/CASTOR, and attach all relevant files ?
Werner > -----Original Message----- > From: M.-Leander Reimer [mailto:[EMAIL PROTECTED] > Sent: Dienstag, 24. Oktober 2006 12:49 > To: [email protected] > Subject: [castor-user] Is public static {Type} > valueOf(String) not working with 1.0.4? > > Hi Castor list, > > just upgraded to Castor 1.0.4 and now some of my unit tests > are not working anymore. To be more precise, all my > unmarshalling tests where a type-safe enum style class is > involved now throw an IllegalArgumentException (stack trace > located at the end of the mail). > > All these classes have a method "public static {Type} > valueOf(String)" and with 1.0.3 everything was working. Has > the support for this been removed in > 1.0.4 or is it a bug? > > I really need some of the fixes from the latest version, so > would a GeneralizedFiledHandler implementation for all these > classes help me to solve this problem quickly? > > Thanks for any comments. > > Leander > > ----- Stack Trace > > Type conversion error: could not set value of > documentVersion(de.adaptions.adgen.common.data.DocumentVersion > ) with value of type java.lang.String > java.lang.IllegalArgumentException: Type conversion error: > could not set value of > documentVersion(de.adaptions.adgen.common.data.DocumentVersion) > with value of type java.lang.String > at > org.exolab.castor.mapping.loader.FieldHandlerImpl.setValue(Fie > ldHandlerImpl. > java:546) > at > org.exolab.castor.mapping.GeneralizedFieldHandler.setValue(Gen > eralizedFieldH > andler.java:274) > at > org.exolab.castor.xml.UnmarshalHandler.processAttribute(Unmars > halHandler.jav > a:3047) > at > org.exolab.castor.xml.UnmarshalHandler.processAttributes(Unmar > shalHandler.ja > va:2704) > at > org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalH > andler.java:16 > 60) > at > org.exolab.castor.xml.UnmarshalHandler.startElement(UnmarshalH > andler.java:13 > 75) > at > org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown > Source) > at > org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown > Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStar > tElement(Unkno > wn Source) > at > org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatche > r.scanRootElem > entHook(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$Fragment > ContentDispatc > her.dispatch(Unknown Source) > at > org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocu > ment(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XML11Configuration.parse(Unknown > Source) > at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) > at > org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) > at > org.exolab.castor.xml.Unmarshaller.unmarshal(Unmarshaller.java:708) > .... > > --------------- > > > --------------------------------------------------------------------- > To unsubscribe from this list please visit: > > http://xircles.codehaus.org/manage_email > > > --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

