Need to explicitly catch UnsatisfiedLinkError exception for System.load()
This commit is contained in:
parent
cec65550af
commit
5e878024aa
@ -15,12 +15,12 @@ diff -uN --recursive jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/CryptoM
|
|||||||
+ System.load( "/usr/lib64/jss/libjss4.so" );
|
+ System.load( "/usr/lib64/jss/libjss4.so" );
|
||||||
+ Debug.trace(Debug.VERBOSE, "jss library loaded");
|
+ Debug.trace(Debug.VERBOSE, "jss library loaded");
|
||||||
+ mNativeLibrariesLoaded = true;
|
+ mNativeLibrariesLoaded = true;
|
||||||
+ } catch( Exception e ) {
|
+ } catch( UnsatisfiedLinkError e ) {
|
||||||
+ try {
|
+ try {
|
||||||
+ System.load( "/usr/lib/jss/libjss4.so" );
|
+ System.load( "/usr/lib/jss/libjss4.so" );
|
||||||
+ Debug.trace(Debug.VERBOSE, "jss library loaded");
|
+ Debug.trace(Debug.VERBOSE, "jss library loaded");
|
||||||
+ mNativeLibrariesLoaded = true;
|
+ mNativeLibrariesLoaded = true;
|
||||||
+ } catch( Exception f ) {
|
+ } catch( UnsatisfiedLinkError f ) {
|
||||||
+ Debug.trace(Debug.VERBOSE, "jss library load failed");
|
+ Debug.trace(Debug.VERBOSE, "jss library load failed");
|
||||||
+ }
|
+ }
|
||||||
+ }
|
+ }
|
||||||
|
5
jss.spec
5
jss.spec
@ -1,6 +1,6 @@
|
|||||||
Name: jss
|
Name: jss
|
||||||
Version: 4.2.6
|
Version: 4.2.6
|
||||||
Release: 5%{?dist}
|
Release: 6%{?dist}
|
||||||
Summary: Java Security Services (JSS)
|
Summary: Java Security Services (JSS)
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -143,6 +143,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jan 13 2010 Rob Crittenden <rcritten@redhat.com> 4.2.6-6
|
||||||
|
- Need to explicitly catch UnsatisfiedLinkError exception for System.load()
|
||||||
|
|
||||||
* Thu Jan 7 2010 Rob Crittenden <rcritten@redhat.com> 4.2.6-5
|
* Thu Jan 7 2010 Rob Crittenden <rcritten@redhat.com> 4.2.6-5
|
||||||
- Move location of libjss4.so to subdirectory and use System.load() to
|
- Move location of libjss4.so to subdirectory and use System.load() to
|
||||||
load it instead of System.loadLibrary() for Fedora packaging compliance
|
load it instead of System.loadLibrary() for Fedora packaging compliance
|
||||||
|
Loading…
Reference in New Issue
Block a user