From 7501a2314660588d103297514734bd5ed3106a6f Mon Sep 17 00:00:00 2001 From: Jay Arthanareeswaran Date: Thu, 5 Sep 2024 10:25:39 +0530 Subject: [PATCH] Fix failing test by setting the right project compliance --- .../tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java index d538e35e66..a3638b0cc2 100644 --- a/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java +++ b/org.eclipse.jdt.debug.tests/tests/org/eclipse/jdt/debug/tests/AbstractDebugTest.java @@ -626,6 +626,8 @@ synchronized void assert23Project() { if (!loaded23) { jp = createProject(TWENTYTHREE_PROJECT_NAME, JavaProjectHelper.TEST_23_SRC_DIR.toString(), JavaProjectHelper.JAVA_SE_23_EE_NAME, false); jp.setOption(JavaCore.COMPILER_PB_ENABLE_PREVIEW_FEATURES, JavaCore.ENABLED); + jp.setOption(JavaCore.COMPILER_SOURCE, JavaCore.VERSION_23); + jp.setOption(JavaCore.COMPILER_COMPLIANCE, JavaCore.VERSION_23); cfgs.add(createLaunchConfiguration(jp, "Main1")); cfgs.add(createLaunchConfiguration(jp, "Main2")); loaded23 = true;