Skip to content

Guava removal breaks compatibility (with JDK9) #301

Closed
@csware

Description

@csware

The minimum required Java version was explicitly raised to 9 with the recent removal of Guava (cf. commit 3b6cc1b).

I appreciate that Guava was dropped recently, however, there is a problem:
Map.copyOf (also List.copyOf) was first introduced with Java 10.

The method Files.readString used in the tests, was introduced with Java 11 (here, Commons-IO could be used, or just plain new String(Files.readAllBytes(path), Charsets.toCharset(charset));).

I suppose reasons are:

  1. The compiler plugin is too old and does not support the --release parameter (cf. Update the maven-compiler-plugin to make the --release check work #304)
  2. No automatic checks are automatically executed (cf. Add GitHub actions for testing #305)

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