xuzifu666 commented on code in PR #5386:
URL: https://github.com/apache/calcite/pull/5386#discussion_r4601595601


##########
testkit/build.gradle.kts:
##########
@@ -49,3 +50,13 @@ 
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile>().configureEach
         )
     }
 }
+
+// JSpecify's @NullMarked annotation has @Target({..., ElementType.MODULE}),
+// and ElementType.MODULE does not exist under --release 8. Compiling source
+// that uses @NullMarked with --release 8 therefore produces an
+// un-suppressible "unknown enum constant" warning, which fails the build
+// under -Werror. Fall back to -source/-target 8: the bytecode target is
+// still 8, but the platform classes come from the JDK in use.
+tasks.compileJava {
+    options.release.set(null as Int?)
+}

Review Comment:
   You are right and addressed, all build system changes have been reverted. 
The PR now touches no build files at all in the last commit. @vlsi @mihaibudiu 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to