[ http://jira.codehaus.org/browse/JIBX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Fabrizio updated JIBX-393: -------------------------- Attachment: pacs.xsd > Unable to set superclass on imported schema that contains restricted enum > ------------------------------------------------------------------------- > > Key: JIBX-393 > URL: http://jira.codehaus.org/browse/JIBX-393 > Project: JiBX > Issue Type: Bug > Components: CodeGen > Affects Versions: JiBX 1.2.2 > Environment: Windows XP > Sun JDK 1.6.0_10 > Reporter: Gary Jacobs > Attachments: EnumOne.xsd, EnumTwo.xsd, pacs.xsd > > > When running CodeGen against the attached schemas I get the following error: > Exception in thread "main" java.lang.IllegalStateException: Internal error - > can't set superclass on an enum or other special type > at > org.jibx.schema.codegen.ClassBuilder.setSuperclass(ClassBuilder.java:167) > at > org.jibx.schema.codegen.ClassHolder.finishClass(ClassHolder.java:718) > at > org.jibx.schema.codegen.EnumerationClassHolder.generate(EnumerationClassHolder.java:166) > at > org.jibx.schema.codegen.PackageHolder.generate(PackageHolder.java:210) > at > org.jibx.schema.codegen.PackageHolder.generate(PackageHolder.java:227) > at org.jibx.schema.codegen.CodeGen.generate(CodeGen.java:1535) > at org.jibx.schema.codegen.CodeGen.main(CodeGen.java:1989) > The command line I'm using is: > java -cp .\;D:\Apache\JibxOriginal\jibx\lib\jibx-tools.jar > org.jibx.schema.codegen.CodeGen -t ./JiBX -p com.jibxstub.request > EnumOne.xsd -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ Nokia and AT&T present the 2010 Calling All Innovators-North America contest Create new apps & games for the Nokia N8 for consumers in U.S. and Canada $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store http://p.sf.net/sfu/nokia-dev2dev _______________________________________________ jibx-devs mailing list jibx-devs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jibx-devs