[ 
http://jira.codehaus.org/browse/JIBX-393?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=258367#action_258367
 ] 

Siddharth Pandey commented on JIBX-393:
---------------------------------------

I am getting same error but not sure it's because of enu or anything else.what 
are "other special type"?



> 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

        

------------------------------------------------------------------------------
Free Software Download: Index, Search & Analyze Logs and other IT data in 
Real-Time with Splunk. Collect, index and harness all the fast moving IT data 
generated by your applications, servers and devices whether physical, virtual
or in the cloud. Deliver compliance at lower cost and gain new business 
insights. http://p.sf.net/sfu/splunk-dev2dev 
_______________________________________________
jibx-devs mailing list
jibx-devs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-devs

Reply via email to