Selma does not recognise nested bean map methods on 'cloning' methods
facboy opened this issue · 0 comments
facboy commented
Selma does not seem to recognise nested 'mapping' methods correctly when generating 'cloning methods', eg
interface MyMapper {
MyBean clone(MyBean bean);
NestedBean clone(NestedBean nested);
}
class MyBean {
NestedBean getNested();
void setNested(NestedBean nested);
}
class NestedBean {
int getValue();
void setValue(int value);
}
Selma generates the clone(NestedBean)
method correctly but also generates a separate asNestedBean
method which the clone(MyBean)
method delegates to. It should just use the clone(NestedBean)
method.