Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calls of .clone() are not casted to needed object #81

Open
SvenBunge opened this issue Jun 19, 2024 · 0 comments
Open

Calls of .clone() are not casted to needed object #81

SvenBunge opened this issue Jun 19, 2024 · 0 comments

Comments

@SvenBunge
Copy link

Tried to generate a builder with another xsd set with the flags -Ximmutable and -Xfluent-builder and it is generating methods using the .clone() method but without casting the result before assigning it to the specific variable:

    public<_B >void copyTo(final Hochbaustatistik.Builder<_B> _other) {
        _other.ordnungsnummer = this.ordnungsnummer;
        _other.identifikator = this.identifikator;
        _other.strassenschluessel = this.strassenschluessel;
        _other.haustypWohngebaeude = ((this.haustypWohngebaeude == null)?null:this.haustypWohngebaeude.newCopyBuilder(_other));
        _other.bauabgang = ((this.bauabgang == null)?null:this.bauabgang.newCopyBuilder(_other));
        _other.bauueberhang = ((this.bauueberhang == null)?null:this.bauueberhang.newCopyBuilder(_other));
        _other.baufertigstellung = ((this.baufertigstellung == null)?null:this.baufertigstellung.clone());
        _other.baugenehmigung = ((this.baugenehmigung == null)?null:this.baugenehmigung.newCopyBuilder(_other));
        _other.heizenergie = ((this.heizenergie == null)?null:this.heizenergie.clone());
....

Still using 4.2.0.0 with jaxb-maven-plugin 4.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant