Enums which implement methods can't be converted since v1.5.1
Opened this issue · 0 comments
Chr3is commented
Hey,
enums which implement methods eg.
public enum MyEnum {
SOME_VALUE {
@Override
void foo() {}
};
abstract void foo();
}
cannot be converted since v1.5.1. It seems that this change introduced this bug. I've attached a little demo project to demonstrate this. In 1.5.0 this type of enum was not acceptable which resulted in the supertype lookup to resolve to the correct class (DefaultSuperTypeResolverStrategy).
I think we have to check in the Types#isEnum() methode the supertype as well. I've tried to do with an extended EnumCustomConverter but there are other places which cannot be fixed with this CustomConverter eg. if the destination type is of type MyEnum.SOME_VALUE.class.
Demo project: OrikaBug.zip
Greetings,
Chris