I am running the JAXB XJC code generator (v2.2.4-1), and it works fine on 32-bit Linux with 32-bit java. But when I run it on 64-bit Linux, I get something like:
Exception in thread "main" java.lang.IllegalArgumentException: Illegal class inheritance loop. Outer class ProductSectionProperty may not subclass from inner class: ProductSectionProperty
In both cases, I use Oracle JDK 1.6.0_u24.
To fix this, I tried:
- using 32 bit java on a 64 bit machine
- specify -XX: + UseCompressedOops
- specify -XX: -UseCompressedOops when I realized that the above default value
but the result was the same.
Any ideas why this is happening or what to do next?
source share