diff --git a/pom.xml b/pom.xml
index 7059b65..bdc91e5 100644
--- a/pom.xml
+++ b/pom.xml
@@ -5,7 +5,7 @@
4.0.0
net.helenus
helenus-core
- 2.0.11-SNAPSHOT
+ 2.0.12-SNAPSHOT
jar
helenus
diff --git a/src/main/java/net/helenus/core/reflect/MapperInvocationHandler.java b/src/main/java/net/helenus/core/reflect/MapperInvocationHandler.java
index b77ba50..467c857 100644
--- a/src/main/java/net/helenus/core/reflect/MapperInvocationHandler.java
+++ b/src/main/java/net/helenus/core/reflect/MapperInvocationHandler.java
@@ -105,12 +105,6 @@ public class MapperInvocationHandler implements InvocationHandler {
throw new HelenusException("missing default type for enum user type " + returnType);
}
- } else if (returnType.isEnum() && (value.getClass() == Integer.class || value.getClass() == int.class)) {
- try {
- value = Class.forName(returnType.getName()).getEnumConstants()[(Integer) value];
- } catch (ArrayIndexOutOfBoundsException e) {
- throw new IllegalArgumentException("invalid ordinal " + value + " for enum type " + returnType.getSimpleName());
- }
}
return value;