From bd4114bdb3b9176a65d073fdc91e8873a938a35c Mon Sep 17 00:00:00 2001 From: Jay Arthanareeswaran Date: Mon, 11 Nov 2024 16:35:43 +0530 Subject: [PATCH] Splitting multiple cases in switch rule fails with IOOBE since I20241108-1800 #1792 --- .../jdt/ui/tests/quickfix/AssistQuickFixTest12.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java index 9a634ca7551..1119ce47e06 100644 --- a/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java +++ b/org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/quickfix/AssistQuickFixTest12.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2019, 2020 IBM Corporation and others. + * Copyright (c) 2019, 2024 IBM Corporation and others. * * This program and the accompanying materials * are made available under the terms of the Eclipse Public License 2.0 @@ -82,7 +82,7 @@ public static void foo(Day day) { } } } - + enum Day { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY; } @@ -113,7 +113,7 @@ public static void foo(Day day) { } } } - + enum Day { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY; } @@ -126,7 +126,7 @@ enum Day { public void testSplitSwitchCaseLabelRuleStatement() throws Exception { fJProject1= JavaProjectHelper.createJavaProject("TestProject1", "bin"); fJProject1.setRawClasspath(projectSetup.getDefaultClasspath(), null); - JavaProjectHelper.set12CompilerOptions(fJProject1, true); + JavaProjectHelper.set14CompilerOptions(fJProject1, true); fSourceFolder= JavaProjectHelper.addSourceContainer(fJProject1, "src"); String str= """ @@ -148,7 +148,7 @@ public static void foo(Day day) { }; } } - + enum Day { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY; } @@ -173,7 +173,7 @@ public static void foo(Day day) { }; } } - + enum Day { MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY; }