Skip to content

Commit

Permalink
Fix failing test by setting the right project compliance
Browse files Browse the repository at this point in the history
  • Loading branch information
jarthana committed Sep 5, 2024
1 parent b50928b commit 7501a23
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7501a23

Please sign in to comment.