Closed chibicitiberiu closed 6 years ago
It can be that you're binding to schemas which are not effectively compiled. I have also never seen schemaLocation="*"
.
I'll need a minimal reproducing test project for this. Please add it under https://github.com/highsource/jaxb2-basics/tree/master/tests and send me a pull request. I'll look into it then.
This schemaLocation="*"
might actually be the issue. I can't find any information about it, but strangely, it worked so far (until I tried to use the extends
).
@chibicitiberiu I'm closing this as you did not provide a minimal reproducing test project.
Hello, I have a bunch of schemas for which I want to generate java classes. Whoever made the schemas used the 'chameleon schema' technique. Basically the same class is defined in every schema where it is used. In order to be able to use these classes, I created a bindings.xjb file which has a bunch of rules like this:
Now I needed to replace that interface with an abstract class, so I did the following:
With this change, I am getting this error:
[xjc] [ERROR] compiler was unable to honor this inheritance:extends customization. It is attached to a wrong place, or its inconsistent with other bindings.
I suspect the issue is that I am binding to multiple schemas (using
schemaLocation="*"
and themultiple="true"
flag). I used theinheritance:extends
with other types which aren't bound to multiple schemas, and I haven't had any issue with those.