]> source.dussan.org Git - jgit.git/commit
Cleanup catch Exception when making Java7FSFactory 22/23222/1
authorShawn Pearce <spearce@spearce.org>
Tue, 11 Mar 2014 21:57:27 +0000 (14:57 -0700)
committerShawn Pearce <spearce@spearce.org>
Tue, 11 Mar 2014 21:57:27 +0000 (14:57 -0700)
commit62b538d8917e7b68407cda70f217606904bf75a2
treea1b53f5412a6d511ff80e87fc924261bbe9f9584
parentefd91ef8a7e9d97fab08a6b9a5e181c846b744cb
Cleanup catch Exception when making Java7FSFactory

Catching Exception and rethrowing as Error when the Java7 factory was
not available threw an unexpected error to the caller, but then
confused things by still setting the factory to the default Java
5 version.  A second call to FS.detect(Boolean) would succeed.

Do not throw to the caller. Instead always default to the Java5
factory if the Java7 one is not loading.

Change-Id: I6e9edb257b404d213ff08c44560fdb1672a5c80b
org.eclipse.jgit/src/org/eclipse/jgit/util/FS.java