Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

IndexOutOfBoundsException when apt has unknownAsEmbeddable enabled #246

Closed
timowest opened this Issue · 4 comments

2 participants

@timowest
Owner

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

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

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
Owner

Yes, this is the same issue.

@timowest
Owner

Released in 2.8.1

@timowest timowest closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.