Skip to content

Commit 97d8789

Browse files
committed
Fix test failing with temurin JDK
1 parent 2fd9321 commit 97d8789

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/Java9ElementTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2017, 2019 IBM Corporation and others.
2+
* Copyright (c) 2017, 2024 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -785,7 +785,7 @@ public void testSystemLibAsJMod() throws Exception {
785785
IPath path = rawClasspath[i].getPath();
786786
if (path.lastSegment().equals("jrt-fs.jar")) {
787787
path = path.removeLastSegments(2).append("jmods").append("java.base.jmod");
788-
if (path.toFile().exists()) {
788+
if (!path.toFile().exists()) {
789789
// No jmod files in JDK? This test is not applicable
790790
return;
791791
}

0 commit comments

Comments
 (0)