krasa / krasa-jaxb-tools

XJC / JAXB plugin for generation of Bean Validation Annotations (JSR-303) and replacing primitive types
Apache License 2.0
61 stars 47 forks source link

Skip classes that are incompatible with current Krasa implementation #65

Closed bezmax closed 4 years ago

bezmax commented 6 years ago

Running krasa together with jaxb2-basics' -Xsimplify extension breaks the krasa as it's unable to correctly parse the schema. This is a hot-fix that simply skips the classes that are unable to be parsed.

This was verified to work with -Xsimplify extension, it successfully skips the classes that have been "simplified", which is not perfect but much better than crashing alltogether.