Is detekt supposed to not work on `JDK 27`? Local...
# detekt
u
Is detekt supposed to not work on
JDK 27
? Locally on my mac it works fine, but when I update the linuxbox CICD it fails with
Copy code
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':formatter:detektDebug' (registered by plugin 'com.android.internal.library').
> java.lang.IllegalStateException: Analyzing /foo/formatter/src/main/kotlin/sk/o2/formatter/DataSizeFormatter.kt led to an exception.
  Location: java.base/java.util.concurrent.CompletableFuture.wrapInCompletionException(CompletableFuture.java:323)
  The original exception message was: java.lang.ArrayIndexOutOfBoundsException: Index 256 out of bounds for length 129
  Running detekt '2.0.0-alpha.6' on Java '27.0.1.0.3+5' on OS 'Linux'
  If the exception message does not help, please feel free to create an issue on our GitHub page.
  at dev.detekt.core.AnalyzerKt.throwIllegalStateException(Analyzer.kt:108)
  at dev.detekt.core.AnalyzerKt.access$throwIllegalStateException(Analyzer.kt:1)
TLDR; why does it behave differently? Is it this concrete JDK vendor issue maybe? (Mac runs azul, linuxbox bellsoft)
e
I believe that’s a transient error. I usually re-run and it works fine.
u
You’re right, funny a flake I’ve never seen before exactly on first run after upgrade..random be randomming thanks