Quantcast
Channel: Active questions tagged autosar - Stack Overflow
Viewing all articles
Browse latest Browse all 101

JAXB xjc: Resolving Illegal Class Inheritance Loop When Generating Classes from AUTOSAR XSD

$
0
0

I'm working with JAXB's xjc tool to generate Java classes from an AUTOSAR XSD file and encountered an IllegalArgumentException indicating an illegal class inheritance loop. Here's the error message I received:

Exception in thread "main" java.lang.IllegalArgumentException: Illegal class inheritance loop.  Outer class TargetIPduRefElement may not subclass from inner class: TargetIPduRefElement        at com.sun.tools.xjc@4.0.3/com.sun.codemodel.JDefinedClass._extends(JDefinedClass.java:247)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.generator.bean.ImplStructureStrategy$1._extends(ImplStructureStrategy.java:96)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.generator.bean.BeanGenerator.<init>(BeanGenerator.java:187)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.generator.bean.BeanGenerator.generate(BeanGenerator.java:141)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.model.Model.generateCode(Model.java:259)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.Driver.run(Driver.java:365)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.Driver.run(Driver.java:198)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.Driver._main(Driver.java:117)        at com.sun.tools.xjc@4.0.3/com.sun.tools.xjc.Driver$1.run(Driver.java:76)

Has anyone encountered a similar issue and found a way to resolve it? I'd appreciate any insights or suggestions on how to debug this problem.


Viewing all articles
Browse latest Browse all 101

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>