Skip to content

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

Open
@KrohnicDev

Description

@KrohnicDev

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions