]> source.dussan.org Git - jgit.git/commit
Also add suppressed exception if unchecked exception occurs in finally 49/201949/2
authorMatthias Sohn <matthias.sohn@sap.com>
Thu, 18 May 2023 10:02:48 +0000 (12:02 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Thu, 18 May 2023 19:10:33 +0000 (21:10 +0200)
commit2cbf0c1774ed0529fc4910c768452902e346ff23
tree2bc13ab42e4bb10e3e91e954441dd8913c76ef00
parent4562e79e234696ae3e1601db9bf8b73a1ef7edf8
Also add suppressed exception if unchecked exception occurs in finally

If a method called in a finally block throws an exception we should add
exceptions caught earlier to the exception we throw in the finally block
not regarding if it's a checked or unchecked exception.

Change-Id: I4c6be9a3a08482b07659ca31d6987ce719d81ca5
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/pack/PackWriter.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/FetchProcess.java
org.eclipse.jgit/src/org/eclipse/jgit/transport/WalkFetchConnection.java