I'm running the JAXB XJC code generator (v2.2.4-1) and it works just fine on a 32 bit linux with 32 bit java. But when I run it on a 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'm using Oracle's JDK 1.6.0_u24.
To fix this I tried:
- using 32bit java on the 64bit machine
- specify -XX:+UseCompressedOops
- specify -XX:-UseCompressedOops when I realised that the above is the default
but the result was the same.
Any ideas why is this happening or what to try next?