Fix for JDK1.5

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2004-06-15 19:51:58 +00:00
commit e11d8b931d
2 changed files with 3 additions and 3 deletions

View file

@ -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" );