Replies: 3 comments 9 replies
-
Thanks for this. I have been hoping for migration from
As far as I can see this only checks that the generated code compiles, whereas The changes from 2.1.0 => 4.1.0 seem to have broken choice elements with a common supertype. The Builder now has these fields public static class Builder<_B >implements Buildable
{
...
private Transport transport;
private Bike.Builder<JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B>> bike;
private Car.Builder<JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B>> car; whereas before I think it had only private Buildable transport; If you call See the following methods to see that Bike and Car are being lost. protected<_P extends JavadocAnnotations.ChoiceOfElementsTwo >_P init(final _P _product) {
_product.transport = this.transport;
return _product;
}
public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> withTransport(final Transport transport) {
this.transport = transport;
return this;
}
public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> withBike(final Bike bike) {
this.bike = ((bike == null)?null:new Bike.Builder<>(this, bike, false));
return this;
}
public JavadocAnnotations.ChoiceOfElementsTwo.Builder<_B> withCar(final Car car) {
this.car = ((car == null)?null:new Car.Builder<>(this, car, false));
return this;
}
@Override
public JavadocAnnotations.ChoiceOfElementsTwo build() {
if (_storedValue == null) {
return this.init(new JavadocAnnotations.ChoiceOfElementsTwo());
} else {
return ((JavadocAnnotations.ChoiceOfElementsTwo) _storedValue);
}
}
|
Beta Was this translation helpful? Give feedback.
-
Hi, I now changed the repo structure so that a test module is inlcuded. |
Beta Was this translation helpful? Give feedback.
-
Would you be able to add in an xsd that demonstrates the scenarios that were broken by my choice change? Then I may be able to fix the plugin so it works for both my case and yours. I am really keen to use the latest version of your lib with |
Beta Was this translation helpful? Give feedback.
-
Fixed bugs #46 and #68 as well as some other regressions and instabilities introduced in the hurry to get out 4.0.0, because JAXB 4 compliance was to priority.
Added more test cases and improved @at055612 s test runner class to regularly run for test runs.
Some minor code cleanup as well.
Full Changelog: jaxb2-rich-contract-plugin-4.0.0...4.1.0
This discussion was created from the release 4.1.0.
Beta Was this translation helpful? Give feedback.
All reactions