sabomichal/immutable-xjc — pull request #4 by JesperTerkelsen (2014-07-28 15:22:18+00:00)
Title: A few compile problems

Hi

I was trying out your XJC plugin on the schemas here:
https://www.oasis-open.org/committees/ubl/
http://docs.oasis-open.org/ubl/os-UBL-2.1/UBL-2.1.zip

And i ran into a few problems compiling the generated code.

1. An abstract class had a builder generated, so the constructor cannot be called.
2. Multiple classes with same name and in same hierarchy (in different packages) caused the static method to get the builder to not compile, because of a name clash.

I fixed the above problems by omitting generating code if it would cause a compilation problem.

Best regards
Jesper Terkelsen