From 445c721f82220e1a69bd9ef09e2bb6cf994da8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Wed, 18 Dec 2024 08:54:29 +0100 Subject: [PATCH] JavaSearchBugsTests2: do not add jar to classpath before creating Avoids to log NoSuchFileException --- .../jdt/core/tests/model/JavaSearchBugsTests2.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests2.java b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests2.java index 82c03428058..dda92dfff0c 100644 --- a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests2.java +++ b/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/JavaSearchBugsTests2.java @@ -2207,7 +2207,7 @@ public void testBug478042_005() throws Exception { " public void fooInt() {}\n" + "}" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p); @@ -2241,7 +2241,7 @@ public void testBug478042_006() throws Exception { " }\n" + "}\n" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p); @@ -2274,7 +2274,7 @@ public void testBug478042_007() throws Exception { " }\n" + "}\n" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p); @@ -2537,7 +2537,7 @@ public void testBug483650_005() throws Exception { " public void fooInt() {}\n" + "}" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p); @@ -2576,7 +2576,7 @@ public void testBug483650_006() throws Exception { " }\n" + "}\n" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p); @@ -2614,7 +2614,7 @@ public void testBug483650_007() throws Exception { " }\n" + "}\n" }, p.getProject().getLocation().append("lib478042.jar").toOSString(), - new String[] { p.getProject().getLocation().append("lib478042.jar").toOSString() }, + null, CompilerOptions.getFirstSupportedJavaVersion()); refresh(p);