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:
parent
dc55225be7
commit
e11d8b931d
2 changed files with 3 additions and 3 deletions
|
|
@ -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" );
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue