Running 32-bit java and 64-bit java gives different results

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?

+4
source share
1 answer

Any ideas why this is happening or what to do next?

1) No

2) I would try to ignore the problem with 32 vs 64 at the moment and see if you can solve the problem differently. I googled the message "Invalid class inheritance loop." and there are a lot of hits. Try scanning them and see if the symptoms / problems / solution to the problem applies to your case.

(I could not find a Java error for this, but finding Java errors does not work well in my experience ...)

0
source

All Articles