diff --git a/SWIG/Examples/test-suite/java/director_protected_runme.java b/SWIG/Examples/test-suite/java/director_protected_runme.java index 794068a61..9c2280b01 100644 --- a/SWIG/Examples/test-suite/java/director_protected_runme.java +++ b/SWIG/Examples/test-suite/java/director_protected_runme.java @@ -52,11 +52,11 @@ public class director_protected_runme { try { - Method method = b.getClass().getDeclaredMethod("ping", null); + Method method = b.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Bar::ping should be protected" ); - method = f.getClass().getDeclaredMethod("ping", null); + method = f.getClass().getDeclaredMethod("ping", (java.lang.Class[])null); if ( !Modifier.isProtected(method.getModifiers()) ) throw new RuntimeException("Foo::ping should be protected" ); diff --git a/SWIG/Examples/test-suite/java/java_typemaps_proxy_runme.java b/SWIG/Examples/test-suite/java/java_typemaps_proxy_runme.java index bb33c752d..eebcc2a39 100644 --- a/SWIG/Examples/test-suite/java/java_typemaps_proxy_runme.java +++ b/SWIG/Examples/test-suite/java/java_typemaps_proxy_runme.java @@ -51,7 +51,7 @@ public class java_typemaps_proxy_runme { // Check the %javamethodmodifiers feature try { - Method methodmodifiertest = nullFarewell.getClass().getDeclaredMethod("methodmodifiertest", null); + Method methodmodifiertest = nullFarewell.getClass().getDeclaredMethod("methodmodifiertest", (java.lang.Class[])null); if ( !Modifier.isPrivate(methodmodifiertest.getModifiers()) ) throw new RuntimeException("NS::Farewell::methodmodifiertest not private" );