home-climate-control/dz

last-imperative-maintenace branch fails to build on JDK17

Closed this issue · 1 comments

Expected Behavior

./gradlew clean build installDist succeeds on last-imperative-maintenance branch.

Actual Behavior

It fails, with the error message below.

An exception has occurred in the compiler (17.0.10). Please file a bug against the Java compiler via the Java bug reporting page (https://bugreport.java.com) after checking the Bug Database (https://bugs.java.com) for duplicates. Include your program, the following diagnostic, and the parameters passed to the Java compiler in your report. Thank you.
java.lang.IllegalAccessError: class com.google.errorprone.BaseErrorProneJavaCompiler (in unnamed module @0x1642799c) cannot access class com.sun.tools.javac.api.BasicJavacTask (in module jdk.compiler) because module jdk.compiler does not export com.sun.tools.javac.api to unnamed module @0x1642799c

Root Cause

Obsolete dependencies that don't work with JDK 17.

Fixed as of rev. 537b20a