Added test for javacode typemap for a templated class

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5464 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-12-02 22:18:09 +00:00
commit 89ca78ce96

View file

@ -41,6 +41,12 @@ import java.lang.*; // for Exception
// Make the pointer constructor public
%typemap(javaptrconstructormodifiers) NS::Farewell "public";
// Test typemaps are being found for templated classes
%typemap(javacode) NS::Adieu<int**> %{
public static void adieu() {
}
%}
%inline %{
namespace NS {
@ -51,5 +57,8 @@ namespace NS {
};
class Farewell {
};
template<class T> class Adieu {};
}
%}
%template(AdieuIntPtrPtr) NS::Adieu<int**>;