2 import director_thread.*;
3 import java.lang.reflect.*;
5 public class director_thread_runme {
9 System.loadLibrary("director_thread");
10 } catch (UnsatisfiedLinkError e) {
11 System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
16 public static void main(String argv[]) {
17 // This test used to hang the process. The solution is to call DetachCurrentThread in ~JNIEnvWrapper, however it causes seg faults in other JNI calls on older JDKs on Solaris. See SWIG_JAVA_NO_DETACH_CURRENT_THREAD in director.swg.
18 director_thread_Derived d = new director_thread_Derived();
21 if (d.getVal() >= 0) {
22 throw new RuntimeException("Failed. Val: " + d.getVal());
27 class director_thread_Derived extends Foo {
28 director_thread_Derived() {
32 public void do_foo() {