Skip to content

Commit

Permalink
synchronize JAREditor.getFolder()
Browse files Browse the repository at this point in the history
With this I can no longer reproduce the racecondition and the java.lang.Exception: Resource '/.BndtoolsJAREditorTempFiles/temp/10000002' already exists

Signed-off-by: Christoph Rueger <[email protected]>
  • Loading branch information
chrisrueger committed Dec 29, 2023
1 parent 65a7d98 commit bbd8cb1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void setInput(URI uri) {
update();
}

private IFolder getFolder(URI input, IProgressMonitor monitor) throws CoreException {
private synchronized IFolder getFolder(URI input, IProgressMonitor monitor) throws CoreException {

URI full = JarFileSystem.jarf(input, "/")
.orElseThrow(IllegalArgumentException::new);
Expand Down

0 comments on commit bbd8cb1

Please sign in to comment.