diff --git a/Lib/java/enums.swg b/Lib/java/enums.swg index b00ab2dec..440fc9b5e 100644 --- a/Lib/java/enums.swg +++ b/Lib/java/enums.swg @@ -36,7 +36,7 @@ * values are specified then a lengthy linear search through all possible enums might occur. Specific typemaps could be * written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum. */ -%typemap(javagetcptr) enum SWIGTYPE %{ +%typemap(javabody) enum SWIGTYPE %{ public final int swigValue() { return swigValue; } diff --git a/Lib/java/enumsimple.swg b/Lib/java/enumsimple.swg index 983812293..b2a210f94 100644 --- a/Lib/java/enumsimple.swg +++ b/Lib/java/enumsimple.swg @@ -28,7 +28,7 @@ } %typemap(javaclassmodifiers) enum SWIGTYPE "" -%typemap(javagetcptr) enum SWIGTYPE "" +%typemap(javabody) enum SWIGTYPE "" %javaenum(simple); diff --git a/Lib/java/enumtypesafe.swg b/Lib/java/enumtypesafe.swg index 6f808af49..a8ab1ce3d 100644 --- a/Lib/java/enumtypesafe.swg +++ b/Lib/java/enumtypesafe.swg @@ -36,7 +36,7 @@ * written to possibly optimise this lookup by taking advantage of characteristics peculiar to the targeted enum. * The special variable, $enumvalues, is replaced with a comma separated list of all the enum values. */ -%typemap(javagetcptr) enum SWIGTYPE %{ +%typemap(javabody) enum SWIGTYPE %{ public final int swigValue() { return swigValue; } diff --git a/Lib/java/enumtypeunsafe.swg b/Lib/java/enumtypeunsafe.swg index 8487e7d93..0772fc5d2 100644 --- a/Lib/java/enumtypeunsafe.swg +++ b/Lib/java/enumtypeunsafe.swg @@ -29,7 +29,7 @@ // '$static' will be replaced with either 'static' or nothing depending on whether the enum is an inner Java class or not %typemap(javaclassmodifiers) enum SWIGTYPE "public final $static class" -%typemap(javagetcptr) enum SWIGTYPE "" +%typemap(javabody) enum SWIGTYPE "" %javaenum(typeunsafe);