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:
parent
9f6df388f1
commit
89ca78ce96
1 changed files with 9 additions and 0 deletions
|
|
@ -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**>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue