summaryrefslogtreecommitdiff
path: root/java/jna/bugfix-type-inference.patch
blob: 2322b13fc983a3415b6860dfa58eb6aa6972f766 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
diff -ru jna-3.4.2.orig/test/com/sun/jna/NativeTest.java jna-3.4.2/test/com/sun/jna/NativeTest.java
--- jna-3.4.2.orig/test/com/sun/jna/NativeTest.java	2012-09-03 08:30:42.000000000 -0400
+++ jna-3.4.2/test/com/sun/jna/NativeTest.java	2012-09-24 15:29:48.000000000 -0400
@@ -374,7 +374,8 @@
             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]));
+                    Class<?> klass = Class.forName(args[i]);
+                    junit.textui.TestRunner.run((Class<? extends TestCase>)klass);
                 }
                 catch(Throwable e) {
                     e.printStackTrace();