Skip to content

Commit

Permalink
Fix test that fails since Eclipse 4.14
Browse files Browse the repository at this point in the history
  • Loading branch information
Godin committed Oct 30, 2023
1 parent 238723b commit 2ca98ff
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,9 @@ public IPackageFragmentRoot createJAR(String jarsrc, String jarpath,
IFile jarfile = project.getFile(jarpath);
InputStream source = openTestResource(new Path(jarsrc));
jarfile.create(source, true, null);
IPackageFragmentRoot packageRoot = javaProject
.getPackageFragmentRoot(jarfile);
addClassPathEntry(JavaCore.newLibraryEntry(packageRoot.getPath(),
addClassPathEntry(JavaCore.newLibraryEntry(jarfile.getFullPath(),
sourceAttachmentPath, sourceAttachmentRootPath));
return packageRoot;
return javaProject.getPackageFragmentRoot(jarfile);
}

public IPackageFragmentRoot createExternalJAR(String jarsrc,
Expand Down

0 comments on commit 2ca98ff

Please sign in to comment.