I\'m trying to know if a class is an Enum, but I think I\'m missing something:
if (test.MyEnum.class instanceof Enum>.class) obj = resultWrapper.getEnum
If you're talking about Java 5 new feature - enum (it's not very new actually), then this is the way to go:
enum
if (obj.getClass().isEnum()) { ... }
If Enum is your custom class, then just check that obj instanceof Enum.
Enum
obj instanceof Enum