Specificly use original approach java enums binding method.
http://www.swig.org/Release/CHANGES 05/20/2004: wsfulton [Java] Java enum support added. There are now 4 ways in which enums can be wrapped: 1) Proper Java enums - use %include "enums.swg" 2) Typesafe enums - use %include "enumtypesafe.swg" 3) Type unsafe enums (constant integers) - use %include "enumtypeunsafe.swg" 4) Simple constant integers (original approach) - use %include %"enumsimple.swg"
This commit is contained in:
parent
4234a511c3
commit
3fe2256876
|
@ -73,6 +73,7 @@
|
|||
%}
|
||||
|
||||
#ifdef SWIGJAVA
|
||||
%include "enumsimple.swg"
|
||||
%pragma(java) jniclasscode=%{
|
||||
static {
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue