15
15
public static void main(String argv[]) {
17
director_basic_MyFoo a = new director_basic_MyFoo();
19
if (!a.ping().equals("director_basic_MyFoo::ping()")) {
20
throw new RuntimeException ( "a.ping()" );
23
if (!a.pong().equals("Foo::pong();director_basic_MyFoo::ping()")) {
24
throw new RuntimeException ( "a.pong()" );
29
if (!b.ping().equals("Foo::ping()")) {
30
throw new RuntimeException ( "b.ping()" );
33
if (!b.pong().equals("Foo::pong();Foo::ping()")) {
34
throw new RuntimeException ( "b.pong()" );
37
A1 a1 = new A1(1, false);
17
director_basic_MyFoo a = new director_basic_MyFoo();
19
if (!a.ping().equals("director_basic_MyFoo::ping()")) {
20
throw new RuntimeException ( "a.ping()" );
23
if (!a.pong().equals("Foo::pong();director_basic_MyFoo::ping()")) {
24
throw new RuntimeException ( "a.pong()" );
29
if (!b.ping().equals("Foo::ping()")) {
30
throw new RuntimeException ( "b.ping()" );
33
if (!b.pong().equals("Foo::pong();Foo::ping()")) {
34
throw new RuntimeException ( "b.pong()" );
37
A1 a1 = new A1(1, false);
41
MyOverriddenClass my = new MyOverriddenClass();
44
if (MyClass.call_pmethod(my, null) != null)
45
throw new RuntimeException("null pointer marshalling problem");
47
Bar myBar = new Bar();
48
my.expectNull = false;
49
Bar myNewBar = MyClass.call_pmethod(my, myBar);
51
throw new RuntimeException("non-null pointer marshalling problem");
63
class MyOverriddenClass extends MyClass {
64
public boolean expectNull = false;
65
public boolean nonNullReceived = false;
66
public Bar pmethod(Bar b) {
67
if ( expectNull && (b != null) )
68
throw new RuntimeException("null not received as expected");