You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
at java.base/java.util.Collections$SingletonList.get(Collections.java:4926)
at io.bazel.kotlin.builder.tasks.jvm.JDepsGeneratorKt.majorJavaVersion(JDepsGenerator.kt:95)
at io.bazel.kotlin.builder.tasks.jvm.JDepsGeneratorKt.access$majorJavaVersion(JDepsGenerator.kt:1)
at io.bazel.kotlin.builder.tasks.jvm.JDepsGenerator.generateJDeps(JDepsGenerator.kt:55)
at io.bazel.kotlin.builder.tasks.jvm.KotlinJvmTaskExecutor$execute$1$$special$$inlined$apply$lambda$3.invoke(KotlinJvmTaskExecutor.kt:123)
at io.bazel.kotlin.builder.tasks.jvm.KotlinJvmTaskExecutor$execute$1$$special$$inlined$apply$lambda$3.invoke(KotlinJvmTaskExecutor.kt:33)
at io.bazel.kotlin.builder.toolchain.CompilationTaskContext.execute(CompilationTaskContext.kt:148)
at io.bazel.kotlin.builder.toolchain.CompilationTaskContext.execute(CompilationTaskContext.kt:140)
at io.bazel.kotlin.builder.tasks.jvm.KotlinJvmTaskExecutor$execute$1.invoke(KotlinJvmTaskExecutor.kt:123)
at io.bazel.kotlin.builder.tasks.jvm.KotlinJvmTaskExecutor$execute$1.invoke(KotlinJvmTaskExecutor.kt:33)
at io.bazel.kotlin.builder.toolchain.CompilationTaskContext.execute(CompilationTaskContext.kt:148)
at io.bazel.kotlin.builder.toolchain.CompilationTaskContext.execute(CompilationTaskContext.kt:140)
at io.bazel.kotlin.builder.tasks.jvm.KotlinJvmTaskExecutor.execute(KotlinJvmTaskExecutor.kt:56)
at io.bazel.kotlin.builder.tasks.KotlinBuilder.executeJvmTask(KotlinBuilder.kt:226)
at io.bazel.kotlin.builder.tasks.KotlinBuilder.apply(KotlinBuilder.kt:129)
at io.bazel.kotlin.builder.tasks.PersistentWorker.run(BazelWorker.kt:168)
at io.bazel.kotlin.builder.tasks.BazelWorker.apply(BazelWorker.kt:74)
at io.bazel.kotlin.builder.KotlinBuilderMain.main(KotlinBuilderMain.java:28)
It seems that we are failing to parse java.version property because the JVM is reporting 15 instead of 15.0 or 15.0.0.
The version number does not include trailing zero elements; i.e., $SECURITY is omitted if it has the value zero, and $MINOR is omitted if both $MINOR and $SECURITY have the value zero.
Hi, I'm trying to use https://github.com/graknlabs/bazel-distribution, which internally uses rules_kotlin, and got the following exception. The version of rules_kotlin is v1.5.0-alpha-3.
It seems that we are failing to parse
java.version
property because the JVM is reporting15
instead of15.0
or15.0.0
.rules_kotlin/src/main/kotlin/io/bazel/kotlin/builder/tasks/jvm/JDepsGenerator.kt
Lines 104 to 108 in 89a082c
According to JEP 223: New Version-String Scheme,
See Also: JDK-8231384: java.version system property doesn't contain minor/patch version anymore
Additional Info
The text was updated successfully, but these errors were encountered: