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 {
|
try {
|
||||||
|
|
||||||
Method method = b.getClass().getDeclaredMethod("ping", null);
|
Method method = b.getClass().getDeclaredMethod("ping", (java.lang.Class[])null);
|
||||||
if ( !Modifier.isProtected(method.getModifiers()) )
|
if ( !Modifier.isProtected(method.getModifiers()) )
|
||||||
throw new RuntimeException("Bar::ping should be protected" );
|
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()) )
|
if ( !Modifier.isProtected(method.getModifiers()) )
|
||||||
throw new RuntimeException("Foo::ping should be protected" );
|
throw new RuntimeException("Foo::ping should be protected" );
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -51,7 +51,7 @@ public class java_typemaps_proxy_runme {
|
||||||
// Check the %javamethodmodifiers feature
|
// Check the %javamethodmodifiers feature
|
||||||
try {
|
try {
|
||||||
|
|
||||||
Method methodmodifiertest = nullFarewell.getClass().getDeclaredMethod("methodmodifiertest", null);
|
Method methodmodifiertest = nullFarewell.getClass().getDeclaredMethod("methodmodifiertest", (java.lang.Class[])null);
|
||||||
if ( !Modifier.isPrivate(methodmodifiertest.getModifiers()) )
|
if ( !Modifier.isPrivate(methodmodifiertest.getModifiers()) )
|
||||||
throw new RuntimeException("NS::Farewell::methodmodifiertest not private" );
|
throw new RuntimeException("NS::Farewell::methodmodifiertest not private" );
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue