diff --git a/SWIG/Examples/test-suite/java/director_enum_runme.java b/SWIG/Examples/test-suite/java/director_enum_runme.java index 87874c6db..063d9daaa 100644 --- a/SWIG/Examples/test-suite/java/director_enum_runme.java +++ b/SWIG/Examples/test-suite/java/director_enum_runme.java @@ -19,12 +19,18 @@ public class director_enum_runme { if (a.ping(Hallo.awright) != Hallo.yo) { throw new RuntimeException ( "a.ping()" ); } + if (a.ping_ref(Hallo.awright) != Hallo.hello) { + throw new RuntimeException ( "a.ping_ref()" ); + } Foo b = new Foo(); if (b.ping(Hallo.awright) != Hallo.awright) { throw new RuntimeException ( "b.ping()" ); } + if (b.ping_ref(Hallo.awright) != Hallo.awright) { + throw new RuntimeException ( "b.ping_ref()" ); + } } } @@ -32,5 +38,8 @@ class MyFoo extends Foo { public Hallo say_hi(Hallo h) { return Hallo.yo; } + public Hallo say_hi_ref(Hallo h) { + return Hallo.hello; + } }