fix generated code for derived classes when csbase or javabase typemaps are used with the replace=1 attribute.

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@10016 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2007-10-19 21:48:05 +00:00
commit a43e50ac07
5 changed files with 163 additions and 62 deletions

View file

@ -0,0 +1,26 @@
import inherit_target_language.*;
public class inherit_target_language_runme {
static {
try {
System.loadLibrary("inherit_target_language");
} catch (UnsatisfiedLinkError e) {
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);
System.exit(1);
}
}
public static void main(String argv[]) {
new Derived1().targetLanguageBaseMethod();
new Derived2().targetLanguageBaseMethod();
new MultipleDerived1().targetLanguageBaseMethod();
new MultipleDerived2().targetLanguageBaseMethod();
new MultipleDerived3().f();
new MultipleDerived4().g();
}
}