Modifications to testcase to test the enums and constants in a separate Java interface.
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@4662 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
f21760e2df
commit
399e9f5504
2 changed files with 21 additions and 1 deletions
|
|
@ -3,6 +3,12 @@
|
|||
|
||||
%module java_enums
|
||||
|
||||
// Some pragmas to add in an interface to the module class - checks that the java_enumsConstants interface class is also 'implemented'
|
||||
%pragma(java) moduleinterfaces="Serializable"
|
||||
%pragma(java) moduleimports=%{
|
||||
import java.io.*; // For Serializable
|
||||
%}
|
||||
|
||||
// Set default Java const code generation
|
||||
%javaconst(1);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue