Skip to content

Commit ba2adeb

Browse files
Jörg Kubitzjukzi
authored andcommitted
ASTConverterTest(s): do not use not existing jclMin1.8.jar
prevents logged java.nio.file.NoSuchFileException: eclipse-testing\test-eclipse\eclipse\jdt_dom_folder\jclMin1.8.jar
1 parent 7adbfef commit ba2adeb

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ConverterTestSetup.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,9 @@ public void tearDownSuite() throws Exception {
145145
super.tearDownSuite();
146146
}
147147

148+
protected String getExternalJCLPathString(String compliance) {
149+
return null;
150+
}
148151
@Override
149152
public void setUpJCLClasspathVariables(String compliance, boolean useFullJCL) throws JavaModelException, IOException {
150153
if (useFullJCL) {

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2535,7 +2535,11 @@ public void ensureChildExists(IParent container, IJavaElement child) throws Java
25352535
protected String[] getJCLLibrary(String compliance) throws JavaModelException, IOException {
25362536
// ensure that the requested JCL lib is setup (i.e. that the jclMinXY.jar is copied)
25372537
setUpJCLClasspathVariables(compliance);
2538-
return new String[] {getExternalJCLPathString(compliance)};
2538+
String externalJCLPathString = getExternalJCLPathString(compliance);
2539+
if (externalJCLPathString == null) {
2540+
return new String[] {};
2541+
}
2542+
return new String[] {externalJCLPathString};
25392543
}
25402544
/**
25412545
* Returns the specified compilation unit in the given project, root, and

0 commit comments

Comments
 (0)