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

Generated class does not compile when denormalize field #66

Closed
BenoitCharret opened this issue Oct 22, 2015 · 2 comments
Closed

Generated class does not compile when denormalize field #66

BenoitCharret opened this issue Oct 22, 2015 · 2 comments
Labels
bug
Milestone

Comments

@BenoitCharret
Copy link

@BenoitCharret BenoitCharret commented Oct 22, 2015

Hi,

When I try to map something like element.subList to list, the generated class, does not compile anymore.

a test case : https://github.com/BenoitCharret/selma-test/tree/case_2
The name of the variable is not well formed is this case :
if (in.getElement().getSubElementList() != null) {
java.util.ArrayList<com.test.to.AnotherSubElement> ain.getElement().getSubElementList()TmpCollection = new java.util.ArrayList<com.test.to.AnotherSubElement>(in.getElement().getSubElementList().size());
out.setInfos(ain.getElement().getSubElementList()TmpCollection);
for (com.test.from.SubSubElement ain.getElement().getSubElementList()Item : in.getElement().getSubElementList()) {
ain.getElement().getSubElementList()TmpCollection.add(customMapperSubSubElementMapper.asAnotherSubElement(ain.getElement().getSubElementList()Item));
}
}

thanks for your help

slemesle added a commit that referenced this issue Oct 23, 2015
@slemesle slemesle closed this Oct 27, 2015
@slemesle
Copy link
Collaborator

@slemesle slemesle commented Oct 29, 2015

Hi,

can you confirm that the bug is fixed ?

@BenoitCharret
Copy link
Author

@BenoitCharret BenoitCharret commented Oct 29, 2015

Yes it fix the issue

@slemesle slemesle added the bug label Nov 18, 2015
@slemesle slemesle added this to the 0.13 milestone Nov 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.