PageRenderTime 5ms CodeModel.GetById 2ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/java/template_classes_runme.java

#
Java | 25 lines | 16 code | 7 blank | 2 comment | 0 complexity | 74afdf87bdd8d0653c2e85144bbc58f1 MD5 | raw file
 1
 2// This is the template_classes runtime testcase. It checks that SWIG handles a templated 
 3// class used by another templated class, in particular that the proxy classes can be used.
 4
 5import template_classes.*;
 6
 7public class template_classes_runme {
 8
 9  static {
10    try {
11	System.loadLibrary("template_classes");
12    } catch (UnsatisfiedLinkError e) {
13      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);
14      System.exit(1);
15    }
16  }
17
18  public static void main(String argv[]) {
19
20    RectangleInt rectint = new RectangleInt();
21    PointInt pi = rectint.getPoint();
22    int x = pi.getX();
23  }
24}
25