It turns out this fixes my first problem but still doesn't fix another problem I have which is very related. Looking at the code from before and the code now, deleting line 1203 fixes my problem. Why is this line here in the code exactly? I noticed it was added after 0.9.4. It breaks alot of my stuff when using the type method. The code below is only executed when using the type method of course. Please let me know what this piece of code does and how I should fix this so I don't break something you have done. I don't understand what Structure.SCHEMA is yet.
thanks,
Dean

Dean Hiller wrote:

I think this should fix it, please verify. Changing line 1202-1203 of file SourceGenerator.java in function createClasses(ElementDecl, SGStateInfo) from

//--make sure we create a class for any top level element
if(elementDecl.getParent().getStructureType() != Structure.SCHEMA)

to

//--make sure we DO NOT create a class for every top level element, only ones with anonymous top-level complex types
if(elementDecl.getParent().getStructureType() == Structure.SCHEMA)

test case will come, as soon as I can figure out what I am doing wrong in writing my last test case or someone responds to my test case e-mail question. Most people on vacation so I don't expect a quick response.
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