Skip to content

Java 17 Support #181

@driseley

Description

@driseley

Context

Sherlock 1.0.1 doesn't seem to support Java 17

Expected Behavior

Sherlock 1.0.1 should support Java 17 (see also #89 - although we have now moved on to Java 17!)

Observed Behavior

When trying to compile client code with Java 17 / Maven we see errors of the form:

[ERROR]   bad class file: /home/dave/.m2/repository/com/coditory/sherlock/sherlock-api/1.0.1/sherlock-api-1.0.1.jar(/com/coditory/sherlock/Sherlock.class)
[ERROR]     class file has wrong version 65.0, should be 61.0
[ERROR]     Please remove or make sure it appears in the correct subdirectory of the classpath.

Steps to Reproduce

Compile any java sherlock client code using a Java 17 JDK

Your Environment

Apache Maven 3.9.6 (bc0240f3c744dd6b6ec2920b3cd08dcc295161ae)
Maven home: /home/dave/.sdkman/candidates/maven/current
Java version: 17.0.10, vendor: Amazon.com Inc., runtime: /home/dave/.sdkman/candidates/java/17.0.10-amzn
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "5.15.146.1-microsoft-standard-wsl2", arch: "amd64", family: "unix"
  • Library version: 1.0.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions