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

XJC generates deprecated Integer(java.lang.String) #41

Open
KrohnicDev opened this issue Dec 2, 2024 · 0 comments
Open

XJC generates deprecated Integer(java.lang.String) #41

KrohnicDev opened this issue Dec 2, 2024 · 0 comments

Comments

@KrohnicDev
Copy link

KrohnicDev commented Dec 2, 2024

The tool generates code which has been deprecated:

    public Integer unmarshal(String value) {
        return new Integer(value);
    }

'Integer(java.lang.String)' is deprecated since version 9 and marked for removal

I am not sure whether this could be avoided by configuration. Currently I am using plugin version 1.8.2 and org.glassfish.jaxb:jaxb-xjc:4.0.5.

Configuration is as follows:

xjc {
    xsdDir = file("my-xsd-dir/xsd")
    includes = listOf("my-schema.xsd")
    bindingFiles.setFrom("my-bindings.xml")
}

I tried setting xjcVersion to 4.0.5 but there was no difference.

@KrohnicDev KrohnicDev changed the title XJC generates deprecated code XJC generates deprecated Integer(java.lang.String) Dec 2, 2024
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