Hi Dean,

I believe you meant to say commenting out the line makes it act
correctly. I can comment it out for now. I believe the goal of that line
was to make "type" approach more friendly by generating classes for
top-level elements. Thereby removing the need to pass in the proper
class to the unmarshaller. Previously only top-level classes with
anonymous type definitions are created. A better solution may be to
create a default ClassDescriptorResolver for the package which lists the
possible top-level elements and which class they map to.

Arnaud just got back from his vacation today, however I don't know
exactly when he'll be back contributing to Castor. 

--Keith


Dean Hiller wrote:
> 
> line 1210 in SourceGenerator
> "if(elementDecl.getParent().getStructureType() != Structure.SCHEMA)"
> still causes many many problems.
> 
> This causes top level elements to be generated when using the "type"
> method vs element.  Uncommenting this line makes it act correctly like
> castor 0.9.4.
> 
> When is arnaud back?
> thanks,
> Dean
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to