Skip to content

Latest tag 1.35.0 requires JDK 22 or above #18

Description

@rafaelzig

Background

Since version 1.34.0, the minimum supported JDK is 25 (ref).

Issue

The base image used in tag 1.35.0 is still using JDK 17:

FROM eclipse-temurin:17@sha256:b624cb9175b71aaeb654dd9def666035332d5abf70318537c1a46e61564dbecd

Running google-java-format generates the following error:

error: com/sun/tools/javac/tree/JCTree$JCAnyPattern
java.lang.NoClassDefFoundError: com/sun/tools/javac/tree/JCTree$JCAnyPattern
        at com.google.googlejavaformat.java.JavaInputAstVisitor.scan(JavaInputAstVisitor.java:369)
        at com.google.googlejavaformat.java.Formatter.format(Formatter.java:114)
        at com.google.googlejavaformat.java.Formatter.getFormatReplacements(Formatter.java:214)
        at com.google.googlejavaformat.java.Formatter.formatSource(Formatter.java:188)
        at com.google.googlejavaformat.java.FormatFileCallable.call(FormatFileCallable.java:75)
        at com.google.googlejavaformat.java.FormatFileCallable.call(FormatFileCallable.java:30)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
        at java.base/java.lang.Thread.run(Thread.java:840)
Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.tree.JCTree$JCAnyPattern
        ... 12 more

Proposed solution

Update the base docker image: #17

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