summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/gluegen/runtime
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2010-06-10 06:13:06 +0200
committerSven Gothel <[email protected]>2010-06-10 06:13:06 +0200
commit555091d37a9a44fb7c35479ddecfee358a559e90 (patch)
tree350a3b9b7f55db85dcf3a808f0249bcd0ab32a74 /src/java/com/jogamp/gluegen/runtime
parent710d86d31cd278583ee3d74b36595f4148a72133 (diff)
Adding DynamicLibraryBundle utility to bundle Tool and JNI native library loading and lookup
Add JNILibLoaderBase.loadLibrary(String libname, boolean ignoreError); DynamicLibraryBundle provides Tool and JNI native library loading and lookup New classes: com.jogamp.common.os.DynamicLibraryBundle com.jogamp.common.os.DynamicLibraryBundleInfo com.jogamp.common.util.MiscUtils.java Change: DEBUG/VERBOSE properties 'gluegen' -> 'jogamp'
Diffstat (limited to 'src/java/com/jogamp/gluegen/runtime')
-rw-r--r--src/java/com/jogamp/gluegen/runtime/ProcAddressTable.java7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/runtime/ProcAddressTable.java b/src/java/com/jogamp/gluegen/runtime/ProcAddressTable.java
index 9a05fce..f0be20f 100644
--- a/src/java/com/jogamp/gluegen/runtime/ProcAddressTable.java
+++ b/src/java/com/jogamp/gluegen/runtime/ProcAddressTable.java
@@ -65,9 +65,9 @@ public abstract class ProcAddressTable {
AccessController.doPrivileged(new PrivilegedAction() {
public Object run() {
- DEBUG = (System.getProperty("gluegen.debug.ProcAddressHelper") != null);
+ DEBUG = (System.getProperty("jogamp.debug.ProcAddressHelper") != null);
if (DEBUG) {
- DEBUG_PREFIX = System.getProperty("gluegen.debug.ProcAddressHelper.prefix");
+ DEBUG_PREFIX = System.getProperty("jogamp.debug.ProcAddressHelper.prefix");
}
return null;
}
@@ -90,6 +90,9 @@ public abstract class ProcAddressTable {
public void reset(DynamicLookupHelper lookup) throws RuntimeException {
+ if(null==lookup) {
+ throw new RuntimeException("Passed null DynamicLookupHelper");
+ }
Class tableClass = getClass();
Field[] fields = tableClass.getFields();