summaryrefslogtreecommitdiffstats
path: root/src/java/com/jogamp/common/util/IOUtil.java
diff options
context:
space:
mode:
authorSven Gothel <[email protected]>2012-07-05 15:04:18 +0200
committerSven Gothel <[email protected]>2012-07-05 15:04:18 +0200
commit2fbad155b38a32f2fb4f8989ffd3ea3dc71f2915 (patch)
treea45b31f39a593439280d636bbd2c9049af41000e /src/java/com/jogamp/common/util/IOUtil.java
parent834b9e530e652b7ff7c5e222720bce3ad2b11c5f (diff)
IOUtil: Better resource location debug info; RunnableTask adds 'flush()' method to flush a pending task (lock that is).
Diffstat (limited to 'src/java/com/jogamp/common/util/IOUtil.java')
-rw-r--r--src/java/com/jogamp/common/util/IOUtil.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/java/com/jogamp/common/util/IOUtil.java b/src/java/com/jogamp/common/util/IOUtil.java
index ffea7cb..a441c18 100644
--- a/src/java/com/jogamp/common/util/IOUtil.java
+++ b/src/java/com/jogamp/common/util/IOUtil.java
@@ -423,10 +423,11 @@ public class IOUtil {
final String className = context.getName().replace('.', '/');
final int lastSlash = className.lastIndexOf('/');
if (lastSlash >= 0) {
- conn = getResource(className.substring(0, lastSlash + 1) + resourcePath, contextCL);
- }
- if(DEBUG) {
- System.err.println("IOUtil: found <"+resourcePath+"> within class package: "+(null!=conn));
+ final String pkgName = className.substring(0, lastSlash + 1);
+ conn = getResource(pkgName + resourcePath, contextCL);
+ if(DEBUG) {
+ System.err.println("IOUtil: found <"+resourcePath+"> within class package <"+pkgName+"> of given class <"+context.getName()+">: "+(null!=conn));
+ }
}
} else if(DEBUG) {
System.err.println("IOUtil: null context");