jna/jna-4.0.0-fix-native-test.patch

14 lines
653 B
Diff
Raw Normal View History

diff --git a/test/com/sun/jna/NativeTest.java b/test/com/sun/jna/NativeTest.java
index a946ca8..b71c9ec 100644
--- a/test/com/sun/jna/NativeTest.java
+++ b/test/com/sun/jna/NativeTest.java
@@ -410,7 +410,7 @@ public class NativeTest extends TestCase {
for (int i=0;i < args.length;i++) {
System.out.println("Running tests on class " + args[i]);
try {
- junit.textui.TestRunner.run(Class.forName(args[i]));
+ junit.textui.TestRunner.run((Class) Class.forName(args[i]));
}
catch(Throwable e) {
e.printStackTrace();