Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selma does not recognise nested bean map methods on 'cloning' methods #201

Open
facboy opened this issue Oct 9, 2018 · 0 comments
Open

Comments

@facboy
Copy link

facboy commented Oct 9, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant