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

Non-parameterized class extending a collection/map #75

Closed
julaudo opened this Issue Mar 8, 2016 · 0 comments

Comments

Projects
None yet
2 participants
@julaudo

julaudo commented Mar 8, 2016

Hi,

I tried to map a class extending List for example:
class MyClass extends ArrayList<Integer> { }

Selma does not like it and throws an exception during code generation :

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at com.sun.tools.javac.util.List.get(List.java:476)
at fr.xebia.extras.selma.codegen.MappingBuilder$7.getBuilder(MappingBuilder.java:217)
at fr.xebia.extras.selma.codegen.MappingBuilder.getBuilderFor(MappingBuilder.java:428)
at fr.xebia.extras.selma.codegen.MappingRegistry.findMappingFor(MappingRegistry.java:70)
at fr.xebia.extras.selma.codegen.MapsWrapper.findMappingFor(MapsWrapper.java:114)
at fr.xebia.extras.selma.codegen.MapperMethodGenerator.findBuilderFor(MapperMethodGenerator.java:196)
at fr.xebia.extras.selma.codegen.MapperMethodGenerator.generate(MapperMethodGenerator.java:279)
at fr.xebia.extras.selma.codegen.MapperMethodGenerator.buildMappingMethod(MapperMethodGenerator.java:112)
at fr.xebia.extras.selma.codegen.MapperMethodGenerator.buildMappingMethods(MapperMethodGenerator.java:74)
at fr.xebia.extras.selma.codegen.MapperMethodGenerator.build(MapperMethodGenerator.java:63)
at fr.xebia.extras.selma.codegen.MapperClassGenerator.build(MapperClassGenerator.java:124)
at fr.xebia.extras.selma.codegen.MapperProcessor.generateMappingClassses(MapperProcessor.java:91)
at fr.xebia.extras.selma.codegen.MapperProcessor.process(MapperProcessor.java:74)

julaudo pushed a commit to julaudo/selma that referenced this issue Mar 8, 2016

julaudo pushed a commit to julaudo/selma that referenced this issue Mar 8, 2016

@slemesle slemesle added this to the 0.14 milestone Mar 16, 2016

@slemesle slemesle added the bug label Mar 16, 2016

slemesle added a commit that referenced this issue Mar 17, 2016

@slemesle slemesle closed this Mar 17, 2016

julaudo pushed a commit to julaudo/selma that referenced this issue Mar 21, 2016

slemesle added a commit that referenced this issue Mar 31, 2016

Merge pull request #84 from julaudo/#75
#75: Non-parameterized class extending a collection/map
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment