Author: mladen.turk(a)jboss.com
Date: 2007-09-28 08:57:13 -0400 (Fri, 28 Sep 2007)
New Revision: 1058
Modified:
trunk/sight/java/org/jboss/sight/LibraryLoader.java
trunk/sight/test/org/jboss/sight/ProcessTest.java
Log:
Fix JBNATIVE-48
Modified: trunk/sight/java/org/jboss/sight/LibraryLoader.java
===================================================================
--- trunk/sight/java/org/jboss/sight/LibraryLoader.java 2007-09-28 12:12:16 UTC (rev
1057)
+++ trunk/sight/java/org/jboss/sight/LibraryLoader.java 2007-09-28 12:57:13 UTC (rev
1058)
@@ -101,7 +101,7 @@
protected static void load(String rootPath)
throws SecurityException, IOException, UnsatisfiedLinkError
{
- int count = new Integer(0);
+ int count = 0;
String name = getDefaultPlatformName();
String path = getDefaultLibraryPath();
Properties props = new Properties();
@@ -119,7 +119,6 @@
count = Integer.parseInt(props.getProperty(name + ".count"));
}
catch (Throwable t) {
- t.printStackTrace(System.err);
throw new UnsatisfiedLinkError("Can't use
Library.properties");
}
for (int i = 0; i < count; i++) {
Modified: trunk/sight/test/org/jboss/sight/ProcessTest.java
===================================================================
--- trunk/sight/test/org/jboss/sight/ProcessTest.java 2007-09-28 12:12:16 UTC (rev 1057)
+++ trunk/sight/test/org/jboss/sight/ProcessTest.java 2007-09-28 12:57:13 UTC (rev 1058)
@@ -43,7 +43,7 @@
protected void setUp()
throws Exception
{
- Library.initialize(null);
+ Library.initialize("");
}
protected void tearDown()
Show replies by date