summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-04-20 02:19:17 +0200
committerSven Gothel <[email protected]>2010-04-20 02:19:17 +0200
commitbce53b52c8638729750c4286dbc04cb14329fd34 (patch)
treeeea722d84a239c76fd334007fe463776c6ad48cf /src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
parenta01cb3d59715a41153380f1977ec75263b762dc6 (diff)
Fix Exception Handling ..
Diffstat (limited to 'src/java/com/jogamp/common/jvm/JNILibLoaderBase.java')
-rw-r--r--src/java/com/jogamp/common/jvm/JNILibLoaderBase.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
index b89cc8a..be5b1de 100644
--- a/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
+++ b/src/java/com/jogamp/common/jvm/JNILibLoaderBase.java
@@ -187,13 +187,14 @@ public class JNILibLoaderBase {
if (t instanceof InvocationTargetException) {
t = ((InvocationTargetException) t).getTargetException();
}
- if (t instanceof Error)
+ if (t instanceof Error) {
throw (Error) t;
+ }
if (t instanceof RuntimeException) {
throw (RuntimeException) t;
}
// Throw UnsatisfiedLinkError for best compatibility with System.loadLibrary()
- throw (UnsatisfiedLinkError)new UnsatisfiedLinkError("can not load library "+libraryName).initCause(e);
+ throw (UnsatisfiedLinkError) new UnsatisfiedLinkError("can not load library "+libraryName).initCause(e);
}
} else {
// System.out.println("sun.boot.library.path=" + Debug.getProperty("sun.boot.library.path", false));