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

IndexOutOfBoundsException when apt has unknownAsEmbeddable enabled #246

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

IndexOutOfBoundsException when apt has unknownAsEmbeddable enabled #246

timowest opened this issue Oct 7, 2012 · 4 comments

Comments

@timowest
Copy link
Member

@timowest 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
Copy link

@michaelajr michaelajr commented 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

@michaelajr
Copy link

@michaelajr michaelajr commented 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

@timowest
Copy link
Member Author

@timowest timowest commented Oct 10, 2012

Yes, this is the same issue.

@timowest
Copy link
Member Author

@timowest 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
Labels
None yet
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants