From e11d8b931db9be9ebdfb2520eb177ed968b03a71 Mon Sep 17 00:00:00 2001 From: William S Fulton Date: Tue, 15 Jun 2004 19:51:58 +0000 Subject: [PATCH] Fix for JDK1.5 git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5987 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/java/director_protected_runme.java | 4 ++-- SWIG/Examples/test-suite/java/java_typemaps_proxy_runme.java | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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" );