You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analyzing how it is possible that JGit cannot find the javax.net.sll.SSLContext class, I looked at the bundle org.eclipse.jgit.http.apache where the error occurred.
RefDirectory:pack might raise an NPE when deleting loose
refs as final part of the RefDirectory.pack().
This is what the code does:
1) packed ref update: update the list of refs which will be
persisted in packed-refs
2) persit packed-refs: flush on file the refs computed in #1
3) prune loose refs: prune loose refs that have been packed in #2
The code correctly locks the packed-refs file during phases 1 to 3.
However, it makes the wrong assumption of considering
the loose refs set as immutable between phases 1 and 3.
The number and values of loose refs on the filesystem can mutate
at any time whilst the RefDirectory.pack() is in progress.
Assuming the contrary can lead to an NPE when retrieving refs
from the mutable loose refs list during phase #3.
Make sure that the ref is not null before dereferencing its
object-id value.
Bug: jgit-4
Change-Id: I2cd01f8a880f3c6561ad978a389ec2db45b6018b
At bndtools we got bndtools/bnd#5908
Analyzing how it is possible that JGit cannot find the
javax.net.sll.SSLContext
class, I looked at the bundle org.eclipse.jgit.http.apache where the error occurred.The manifest is clearly not importing this package. Looking at the analysis of the jar:
So the code clearly references this package.
I am not sure how you generate the manifest here in this project, but looking at manifest I see:
Which clearly does not show javax.net.ssl?
I am really puzzled how this could've worked ever?
The text was updated successfully, but these errors were encountered: