diff --git a/SWIG/Examples/java/enum/example.h b/SWIG/Examples/java/enum/example.h
index 525d62afc..9119cd9fc 100644
--- a/SWIG/Examples/java/enum/example.h
+++ b/SWIG/Examples/java/enum/example.h
@@ -5,7 +5,7 @@ enum color { RED, BLUE, GREEN };
class Foo {
public:
Foo() { }
- enum speed { IMPULSE, WARP, LUDICROUS };
+ enum speed { IMPULSE=10, WARP=20, LUDICROUS=30 };
void enum_test(speed s);
};
diff --git a/SWIG/Examples/java/enum/index.html b/SWIG/Examples/java/enum/index.html
index cd81244e3..6179f9f97 100644
--- a/SWIG/Examples/java/enum/index.html
+++ b/SWIG/Examples/java/enum/index.html
@@ -14,9 +14,11 @@
$Header$
-This example tests SWIG's ability to wrap enumerations. By default, SWIG -converts enumeration specifications into integer constants. Further use -of enumerated types are handled as integers. +This example tests SWIG's ability to wrap enumerations. +SWIG wraps enums in numerous different ways. The default approach is to wrap +each enum with the typesafe enum pattern. Enums are handled as integers in the JNI layer. +See the documentation for the other approaches for wrapping enums. +