diff --git a/core/deployment/src/main/java/io/quarkus/deployment/dev/DevModeCommandLineBuilder.java b/core/deployment/src/main/java/io/quarkus/deployment/dev/DevModeCommandLineBuilder.java index 25050037360a2..ea11d2625c44e 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/dev/DevModeCommandLineBuilder.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/dev/DevModeCommandLineBuilder.java @@ -412,7 +412,6 @@ public DevModeCommandLine build() throws Exception { // if the --enable-preview flag was set, then we need to enable it when launching dev mode as well if (devModeContext.isEnablePreview()) { - System.out.println("ADDING enable-preview"); jvmOptionsBuilder.add("enable-preview"); } @@ -516,7 +515,7 @@ private boolean isDisableC2(Map> lockedJvmOptions) { extensionsEnableC2Warning(lockingExtensions); return false; } - return !JavaVersionUtil.isGraalvmJdk(); + return true; } private void configureDebugging() throws Exception { diff --git a/core/deployment/src/test/java/io/quarkus/deployment/dev/DevModeCommandLineBuilderTest.java b/core/deployment/src/test/java/io/quarkus/deployment/dev/DevModeCommandLineBuilderTest.java index a741565671b40..6e22cd52948ac 100644 --- a/core/deployment/src/test/java/io/quarkus/deployment/dev/DevModeCommandLineBuilderTest.java +++ b/core/deployment/src/test/java/io/quarkus/deployment/dev/DevModeCommandLineBuilderTest.java @@ -29,7 +29,6 @@ public void extensionSetsJvmOptionWoValue() throws Exception { Set.of()); var args = getCliArguments(acmeMagic); - System.out.println(args); assertThat(args).contains("--enable-preview"); }