From d00ffc3aab0a51b20bcb5af19191f434edf7d54d Mon Sep 17 00:00:00 2001 From: Yichen Yan Date: Sat, 2 Jul 2022 22:50:17 +0800 Subject: [PATCH] Some thread updates in JDK 19. --- mx.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mx.py b/mx.py index 282bc6dd..4e822440 100755 --- a/mx.py +++ b/mx.py @@ -7670,6 +7670,8 @@ def prepare(self, sourceFiles, project, outputDir, classPath, processorPath, sou javacArgs += ['-proc:none'] c = str(compliance) javacArgs += ['-target', c, '-source', c] + if c == '19' and self.jdk.javaCompliance == '19': + javacArgs += ['--enable-preview'] if _opts.very_verbose: javacArgs.append('-verbose')