Skip to content

Java 1.8 as minimum required version ? #651

@agavrilov76

Description

@agavrilov76

Hi,

I have noticed that a minimal supported Java version is 1.6 which is quite old. Any plans to switch to 1.8?

One of the issues with 1.6 is that it doesn't have a decent Base64 support, so the pushgateway module has to use the javax.xml.bind.DatatypeConverter.printBase64Binary method from JAXB that is not longer present in the modern Java runtimes (since 10 I think). So the Maven library javax.xml.bind:jaxb-api containing javax.xml.bind comes as a transitive Maven dependency for pushgateway. Now the javax.xml.bind has recently been made deprecated in a favour of jakarta.xml.bind. Which leads to the situation of having two JAXB implementations being present in the application classpath.

Replacing javax.xml.bind.DatatypeConverter.printBase64Binary with java.util.Base64 in Java 8 would solve this issue :).

Thanks!

As a workaround for my project I'm going to simply exclude javax.xml.bind:jaxb-api in the pom.xml which should not cause troubles as long as the job name doesn't have / character and the basic auth is not used 😬

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions