You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for reporting the issue. The problem is even not in ObjectFactory: formally UpdateSomeItems → Item and UpdateOtherItems → Item may be completely different elements. Is it the case in reality for you? If not (as workaround) you could optimize your schema by extracting <Item> as separate element and using a reference to it in xs:sequence.
The solution in this particular case would be that one of the classes will be renamed, namely there will be two classes in the model: DemoXewBug.Action.Item and DemoXewBug.Action.Item1 (for example). If you have any ideas how to resolve name collision more nicely, you're welcome to suggest.
I have uploaded jaxb-xew-plugin-1.5-SNAPSHOT.jar that should help with this issue. In particular, it appends the parent class name if there is a class name collision (e.g. UpdateOtherItemsItem). I think one should able to influence the class name by applying the appropriate JAXB customization.
Hi!
Processing of the following schema fragment produces duplicate createDemoXewBugActionItem() method in the ObjectFactory class:
I think that happens because XmlElementWrapperPlugin.renameFactoryMethod does not check for existence of the new method prior to renaming.
The text was updated successfully, but these errors were encountered: