Skip to content

Commit

Permalink
ASTConverterTest(s): do not use not existing jclMin1.8.jar
Browse files Browse the repository at this point in the history
prevents logged java.nio.file.NoSuchFileException:
eclipse-testing\test-eclipse\eclipse\jdt_dom_folder\jclMin1.8.jar
  • Loading branch information
jukzi committed Dec 18, 2024
1 parent 7adbfef commit ba2adeb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,9 @@ public void tearDownSuite() throws Exception {
super.tearDownSuite();
}

protected String getExternalJCLPathString(String compliance) {
return null;
}
@Override
public void setUpJCLClasspathVariables(String compliance, boolean useFullJCL) throws JavaModelException, IOException {
if (useFullJCL) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2535,7 +2535,11 @@ public void ensureChildExists(IParent container, IJavaElement child) throws Java
protected String[] getJCLLibrary(String compliance) throws JavaModelException, IOException {
// ensure that the requested JCL lib is setup (i.e. that the jclMinXY.jar is copied)
setUpJCLClasspathVariables(compliance);
return new String[] {getExternalJCLPathString(compliance)};
String externalJCLPathString = getExternalJCLPathString(compliance);
if (externalJCLPathString == null) {
return new String[] {};
}
return new String[] {externalJCLPathString};
}
/**
* Returns the specified compilation unit in the given project, root, and
Expand Down

0 comments on commit ba2adeb

Please sign in to comment.