Fix for JDK1.5
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5987 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
2252e3bb13
commit
5fa2399106
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