Will let you know once I have looked at things in detail.

Re: your question about an upcoming release .... not sure, to be honest.
 There's a 1.2.1 release planned in Jira, but I am not sure whether it
is a good time to do this right now.

Werner

cedric bompart wrote:
> http://jira.codehaus.org/browse/CASTOR-2397
> 
> Can you let me know if it's a simple fix and if I can get a 1.2.3 release for 
> example... when do you think the Castor project will release a new version?
> For the time been this bug/feature is a blocker for our project.
> 
> Regards,
> Cedric.
> ----------------------------------------
>> Date: Mon, 26 May 2008 09:59:08 +0200
>> From: [EMAIL PROTECTED]
>> To: [email protected]
>> Subject: Re: [castor-user] abstract method with child field mapping
>>
>> Can you please create a Jira issue and attach a fully working (albeit
>> minimal) sample/test case ?
>>
>> Thanks in advance ...
>>
>> Werner
>>
>> cedric bompart wrote:
>>> Hi,
>>>
>>> I'm trying to mapped an abstract class the following mapping:
>>>
>>>
>>>    
>>>     
>>>    
>>>    
>>>        
>>>    
>>>
>>>
>>> Caused by: org.exolab.castor.mapping.MappingException: The method 
>>> getService in class xxx.Test is not accessible -- the method must be public 
>>> and not static
>>>     at 
>>> org.exolab.castor.mapping.loader.AbstractMappingLoader.createFieldHandler(AbstractMappingLoader.java:740)
>>>         at 
>>> org.exolab.castor.mapping.loader.AbstractMappingLoader.createFieldDesc(AbstractMappingLoader.java:555)
>>>     at 
>>> org.exolab.castor.xml.XMLMappingLoader.createFieldDesc(XMLMappingLoader.java:467)
>>>     at 
>>> org.exolab.castor.mapping.loader.AbstractMappingLoader.createFieldDescriptors(AbstractMappingLoader.java:415)
>>>     at 
>>> org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor(XMLMappingLoader.java:237)
>>>     at 
>>> org.exolab.castor.xml.XMLMappingLoader.createFieldDesc(XMLMappingLoader.java:593)
>>>     at 
>>> org.exolab.castor.mapping.loader.AbstractMappingLoader.createFieldDescriptors(AbstractMappingLoader.java:415)
>>>     at 
>>> org.exolab.castor.xml.XMLMappingLoader.createClassDescriptor(XMLMappingLoader.java:237)
>>>     at 
>>> org.exolab.castor.mapping.loader.AbstractMappingLoader.createClassDescriptors(AbstractMappingLoader.java:275)
>>>     at 
>>> org.exolab.castor.xml.XMLMappingLoader.loadMapping(XMLMappingLoader.java:156)
>>>     at 
>>> org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:162)
>>>     at 
>>> org.castor.mapping.MappingUnmarshaller.getMappingLoader(MappingUnmarshaller.java:128)
>>>     at org.exolab.castor.xml.XMLContext.addMapping(XMLContext.java:80)
>>>     at 
>>> com.echovox.zong.web.rest.CastorSerializationStrategy.(CastorSerializationStrategy.java:39)
>>>
>>> AbstractMappingLoader.java:740
>>>
>>> String methodName = GET_METHOD_PREFIX + capitalize(parentField);
>>> Method method = javaClass.getMethod(methodName, (Class[]) null);
>>> if (isAbstractOrStatic(method)) {
>>>     throw new MappingException("mapping.accessorNotAccessible", methodName, 
>>> javaClass.getName());
>>> }
>>> getSequence.add(method);
>>>
>>>
>>> The "Test" abstract class has an abstract public method which is 
>>> "getService()" and the "Service" class has an attribute called "id". So it 
>>> look like I can't access the child field element from an abstract method... 
>>> why?
>>>
>>>
>>> Regards,
>>> Cedric.
>>> _________________________________________________________________
>>>
>>> All new Live Search at Live.com
>>>
>>> http://clk.atdmt.com/UKM/go/msnnkmgl0010000006ukm/direct/01/
>>> ---------------------------------------------------------------------
>>> 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
>>
>>
> 
> _________________________________________________________________
> 
> All new Live Search at Live.com
> 
> http://clk.atdmt.com/UKM/go/msnnkmgl0010000006ukm/direct/01/
> ---------------------------------------------------------------------
> 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


Reply via email to