Skip to content

Commit

Permalink
Splitting multiple cases in switch rule fails with IOOBE since
Browse files Browse the repository at this point in the history
I20241108-1800 #1792
  • Loading branch information
jarthana committed Nov 11, 2024
1 parent 0871ea2 commit bd4114b
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -82,7 +82,7 @@ public static void foo(Day day) {
}
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand Down Expand Up @@ -113,7 +113,7 @@ public static void foo(Day day) {
}
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand All @@ -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= """
Expand All @@ -148,7 +148,7 @@ public static void foo(Day day) {
};
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand All @@ -173,7 +173,7 @@ public static void foo(Day day) {
};
}
}
enum Day {
MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY;
}
Expand Down

0 comments on commit bd4114b

Please sign in to comment.