Skip to content

Commit

Permalink
Fix test failures in I build. (eclipse-jdt#3120)
Browse files Browse the repository at this point in the history
  • Loading branch information
srikanth-sankaran authored Oct 19, 2024
1 parent a3e8ece commit a569f00
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,10 @@ public final class Child extends Parent {
}

public void testExhaustiveness() throws JavaModelException {
String javaVersion = System.getProperty("java.version");
if (javaVersion != null && JavaCore.compareJavaVersions(javaVersion, "18") < 0)
return;

IPath projectPath = env.addProject("Project", "18");
env.addExternalJars(projectPath, Util.getJavaClassLibs());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,9 @@ boolean match(String err) {
// Check behavior of expression switch in JDK18-
// https://github.com/eclipse-jdt/eclipse.jdt.core/issues/3096#issuecomment-2417954288
public void testGHI1774_Expression() throws Exception {

String javaVersion = System.getProperty("java.version");
if (javaVersion != null && JavaCore.compareJavaVersions(javaVersion, "18") < 0)
return;
String path = LIB_DIR;
String libPath = null;
if (path.endsWith(File.separator)) {
Expand Down

0 comments on commit a569f00

Please sign in to comment.