Skip to content

Commit

Permalink
Fix atomic outputstream closed channels exceptions (and update JavaFX) (
Browse files Browse the repository at this point in the history
JabRef#11216)

* Update to javafx 22.0.1

fix atomic outputstream closed channels exceptions

* checkstyle
  • Loading branch information
Siedlerchr authored Apr 17, 2024
1 parent 7063d2d commit 6789460
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ dependencyLocking {
}

javafx {
version = "22"
version = "22.0.1"
modules = [ 'javafx.controls', 'javafx.fxml', 'javafx.web', 'javafx.swing' ]
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,11 @@ public void abort() {

private void cleanup() {
try {
if (temporaryFileLock != null) {
if (temporaryFileLock != null && temporaryFileLock.isValid()) {
temporaryFileLock.release();
}
} catch (IOException exception) {
// Currently, we always get the exception:
// Unable to release lock on file C:\Users\koppor\AppData\Local\Temp\junit11976839611279549873\error-during-save.txt.tmp: java.nio.channels.ClosedChannelException
// In case we still get an exception
LOGGER.debug("Unable to release lock on file {}", temporaryFile, exception);
}
try {
Expand Down

0 comments on commit 6789460

Please sign in to comment.