Thanks, i suppose it`s all ok with java
java -version
openjdk version "13.0.7" 2021-04-20
OpenJDK Runtime Environment (build 13.0.7+5-Ubuntu-0ubuntu120.04)
OpenJDK 64-Bit Server VM (build 13.0.7+5-Ubuntu-0ubuntu120.04, mixed mode)

and not ok with:

build.gradle.kts

'''
val werror by props(true)
...
if (werror) {
        options.compilerArgs.add("-Werror")
}
'''

What is the exact Java version you are using?

It looks like https://bugs.openjdk.java.net/browse/JDK-8032211 , and it
might be that newer OpenJDK include the fix.

Vladimir

Reply via email to