IndexOutOfBoundsException when apt has unknownAsEmbeddable enabled #246

Closed
timowest opened this Issue Oct 7, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@timowest
Member

timowest commented Oct 7, 2012

The following exception is thrown when the apt processor is run with querydsl.unknownAsEmbedded set to true.

Caused by: java.lang.IndexOutOfBoundsException: -1
at com.sun.tools.javac.util.List.get(List.java:414)
at com.mysema.query.apt.TypeExtractor.visitDeclared(TypeExtractor.java:62)
at com.mysema.query.apt.TypeExtractor.visitDeclared(TypeExtractor.java:32)
at com.sun.tools.javac.code.Type$ClassType.accept(Type.java:731)
at javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:95)
at com.mysema.query.apt.AbstractQuerydslProcessor.processFromProperties(AbstractQuerydslProcessor.java:377)
at com.mysema.query.apt.AbstractQuerydslProcessor.getTypeFromProperties(AbstractQuerydslProcessor.java:347)
at com.mysema.query.apt.AbstractQuerydslProcessor.collectElements(AbstractQuerydslProcessor.java:220)
at com.mysema.query.apt.AbstractQuerydslProcessor.processAnnotations(AbstractQuerydslProcessor.java:118)
at com.mysema.query.apt.AbstractQuerydslProcessor.process(AbstractQuerydslProcessor.java:104)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.callProcessor(JavacProcessingEnvironment.java:793)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.discoverAndRunProcs(JavacProcessingEnvironment.java:722)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.access$1700(JavacProcessingEnvironment.java:97)
at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.run(JavacProcessingEnvironment.java:1029)
at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1163)
at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1108)
at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:824)
at com.sun.tools.javac.main.Main.compile(Main.java:439)
... 23 more

timowest added a commit that referenced this issue Oct 7, 2012

@michaelajr

This comment has been minimized.

Show comment
Hide comment
@michaelajr

michaelajr Oct 10, 2012

Hey there - Thanks for the reply in the Spring Forums to my java.lang.IndexOutOfBoundsException. Was going to open an issue as you suggested - then saw this. Is this the same issue? Still need me to open one? M

Hey there - Thanks for the reply in the Spring Forums to my java.lang.IndexOutOfBoundsException. Was going to open an issue as you suggested - then saw this. Is this the same issue? Still need me to open one? M

@michaelajr

This comment has been minimized.

Show comment
Hide comment
@michaelajr

michaelajr Oct 10, 2012

Just saw your last comment over on the Spring forum. Sorry I was late opening up a ticket. Thanks again for addressing this so quickly. M

Just saw your last comment over on the Spring forum. Sorry I was late opening up a ticket. Thanks again for addressing this so quickly. M

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 10, 2012

Member

Yes, this is the same issue.

Member

timowest commented Oct 10, 2012

Yes, this is the same issue.

@timowest

This comment has been minimized.

Show comment
Hide comment
@timowest

timowest Oct 19, 2012

Member

Released in 2.8.1

Member

timowest commented Oct 19, 2012

Released in 2.8.1

@timowest timowest closed this Oct 19, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment