Thanks, Bill, for your help. I think I'll leave it up to somebody else
,who knows the XML side of things better than me, to share his views on
your findings.
Werner
Bill Leng wrote:
> Hi Werner,
>
> I spent some time on this bug and found this fix. In SourceFactory.java
> around line 592, the original code is
>
> if (!component.isAbstract()) {
> //-- #marshal()
> createMarshalMethods(jClass);
> //-- #unmarshal()
> createUnmarshalMethods(jClass, sgState);
> }
> If we change to
> if (!component.isAbstract()) {
> if(jClass.getSuperClass() != null) {
> //-- #marshal()
> createMarshalMethods(jClass);
> //-- #unmarshal()
> createUnmarshalMethods(jClass, sgState);
> }
> }
> This bug will be fixed. This change will prevent the unmarshal method
> from being generated on the super class. I don't know if there is any
> side effect.
>
> In fact, the root cause is that the super class should be abstract as it
> was in the previous release. Then, component.isAbstract() will be true
> and the marshal and unmarshal methods will not get generated.
>
> hope this helps
>
> Bill
>
> Werner Guttmann wrote:
>
>> Bill,
>>
>> unless the bug you are referring to is listed in the release notes as
>> being fixed/closed, I'd consider it to be 'open'. Given that your
>> problem is in the area of code generation with the source generator, I
>> am afraid I cannot offer you any additional help (as much as I wanted to
>> ...).
>>
>> Werner
>>
>> Bill Leng wrote:
>>
>>> Tried this 0.9.9 release. The bug I reported earlier does not seem to be
>>> fixed. The generated Java source files just simply don't compile. I am
>>> wondering if there is anyone who tried the source generator
>>> successfully? If you tried successfully, please let me know. There might
>>> be something I did wrong.
>>>
>>> thanks
>>>
>>> Bill
>>>
>>> Werner Guttmann wrote:
>>>
>>>
>>>> Hi,
>>>>
>>>> We're pleased to announce that Castor 0.9.9 has just been released and
>>>> can be downloaded from the Codehaus
>>>> (http://dist.codehaus.org/castor/0.9.9). This is a major feature
>>>> release. For details about the features added and the bugs fixed,
>>>> please
>>>> have a look at the release notes
>>>> (http://castor.codehaus.org/release-notes.html). As such, all Castor
>>>> 0.9.6 and 0.9.7 users are encouraged to upgrade to Castor 0.9.9.
>>>>
>>>> We are currently planning for a Castor 1.0 release in about 8+ weeks,
>>>> which we mainly see as a maintenance release and a one-time opportunity
>>>> to get the HTML documentation into a better shape .. ;-). Please have a
>>>> look at the project roadmap (http://jira.codehaus.org/browse/CASTOR)
>>>> for
>>>> details about future releases.
>>>>
>>>> Please report any regression issues at
>>>> http://jira.codehaus.org/browse/CASTOR.
>>>>
>>>> Regards
>>>> Werner Guttmann
>>>>
>>>>
>>>>
>>>> -------------------------------------------------
>>>> If you wish to unsubscribe from this list, please send an empty
>>>> message to the following address:
>>>>
>>>> [EMAIL PROTECTED]
>>>> -------------------------------------------------
>>>>
>>>
>>> -------------------------------------------------
>>> If you wish to unsubscribe from this list, please send an empty message
>>> to the following address:
>>>
>>> [EMAIL PROTECTED]
>>> -------------------------------------------------
>>>
>>>
>>
>>
>>
>> -------------------------------------------------
>> If you wish to unsubscribe from this list, please send an empty
>> message to the following address:
>>
>> [EMAIL PROTECTED]
>> -------------------------------------------------
>>
>
> -------------------------------------------------
> If you wish to unsubscribe from this list, please send an empty message
> to the following address:
>
> [EMAIL PROTECTED]
> -------------------------------------------------
>
>
-------------------------------------------------
If you wish to unsubscribe from this list, please
send an empty message to the following address:
[EMAIL PROTECTED]
-------------------------------------------------