You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by mt...@apache.org on 2009/09/23 20:40:52 UTC
svn commit: r818190 -
/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java
Author: mturk
Date: Wed Sep 23 18:40:52 2009
New Revision: 818190
URL: http://svn.apache.org/viewvc?rev=818190&view=rev
Log:
Fix dump for libs loaded using System.loadLibrary
Modified:
commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java
Modified: commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java?rev=818190&r1=818189&r2=818190&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java (original)
+++ commons/sandbox/runtime/trunk/src/main/java/org/apache/commons/runtime/Loader.java Wed Sep 23 18:40:52 2009
@@ -216,8 +216,9 @@
if (!isEmpty()) {
System.out.println("Loaded from classpath: ");
for (int i = 0; i < Properties.NATIVE_LIBS.length; i++) {
+ File f = libs.get(Properties.NATIVE_LIBS[i]);
System.out.println("[" + i + "] " +
- libs.get(Properties.NATIVE_LIBS[i]).getPath());
+ f == null ? "java.library.path" : f.getPath());
}
System.out.println();
}