{"action":"created","issue":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/2059","repository_url":"https://api.github.com/repos/querydsl/querydsl","labels_url":"https://api.github.com/repos/querydsl/querydsl/issues/2059/labels{/name}","comments_url":"https://api.github.com/repos/querydsl/querydsl/issues/2059/comments","events_url":"https://api.github.com/repos/querydsl/querydsl/issues/2059/events","html_url":"https://github.com/querydsl/querydsl/issues/2059","id":194271752,"number":2059,"title":"java.lang.StackOverflowError thrown for Q-classes generation","user":{"login":"Nogyara","id":2051502,"avatar_url":"https://avatars.githubusercontent.com/u/2051502?v=3","gravatar_id":"","url":"https://api.github.com/users/Nogyara","html_url":"https://github.com/Nogyara","followers_url":"https://api.github.com/users/Nogyara/followers","following_url":"https://api.github.com/users/Nogyara/following{/other_user}","gists_url":"https://api.github.com/users/Nogyara/gists{/gist_id}","starred_url":"https://api.github.com/users/Nogyara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nogyara/subscriptions","organizations_url":"https://api.github.com/users/Nogyara/orgs","repos_url":"https://api.github.com/users/Nogyara/repos","events_url":"https://api.github.com/users/Nogyara/events{/privacy}","received_events_url":"https://api.github.com/users/Nogyara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-08T08:10:14Z","updated_at":"2016-12-19T15:43:56Z","closed_at":null,"body":"Hi guys,\r\n\r\nI ran into issue with the newest QueryDSL 4.1.3, when configured as annotation processor for Morphia @Entities in Eclipse 4.6.1. The stack trace follows, but my rough debugging showed that the problem is in generating Q-classes with more complicated type parameters.\r\n\r\nIn my case, one of the abstract classes looks like this:\r\n\r\n```\r\npublic abstract class AbstractEntity<ID extends Comparable<ID> & Serializable> implements Identifiable<ID> {\r\n}\r\n```\r\n\r\nWhen '& Serializable' is removed, Q-classes generation works again.\r\n\r\n```\r\njava.lang.Exception: java.lang.StackOverflowError\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:169)\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)\r\n\tat org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)\r\n\tat org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:135)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:915)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:437)\r\n\tat org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:417)\r\n\tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:368)\r\n\tat org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.compile(IncrementalImageBuilder.java:330)\r\n\tat org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:305)\r\n\tat org.eclipse.jdt.internal.core.builder.IncrementalImageBuilder.build(IncrementalImageBuilder.java:135)\r\n\tat org.eclipse.jdt.internal.core.builder.JavaBuilder.buildDeltas(JavaBuilder.java:267)\r\n\tat org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:195)\r\n\tat org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)\r\n\tat org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)\r\n\tat org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)\r\n\tat org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)\r\n\tat org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:144)\r\n\tat org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)\r\n\tat org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)\r\nCaused by: java.lang.StackOverflowError\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.getUpperBound(TypeVariableImpl.java:66)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:220)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\tat javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:92)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:221)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\tat javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:92)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:221)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\tat javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:92)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:221)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\tat javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:92)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:221)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\tat javax.lang.model.util.AbstractTypeVisitor6.visit(AbstractTypeVisitor6.java:92)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:221)\r\n\tat com.querydsl.apt.ExtendedTypeFactory$2.visitTypeVariable(ExtendedTypeFactory.java:168)\r\n\tat org.eclipse.jdt.internal.compiler.apt.model.TypeVariableImpl.accept(TypeVariableImpl.java:74)\r\n\t...\r\n```"},"comment":{"url":"https://api.github.com/repos/querydsl/querydsl/issues/comments/267996926","html_url":"https://github.com/querydsl/querydsl/issues/2059#issuecomment-267996926","issue_url":"https://api.github.com/repos/querydsl/querydsl/issues/2059","id":267996926,"user":{"login":"Shredder121","id":4105066,"avatar_url":"https://avatars.githubusercontent.com/u/4105066?v=3","gravatar_id":"","url":"https://api.github.com/users/Shredder121","html_url":"https://github.com/Shredder121","followers_url":"https://api.github.com/users/Shredder121/followers","following_url":"https://api.github.com/users/Shredder121/following{/other_user}","gists_url":"https://api.github.com/users/Shredder121/gists{/gist_id}","starred_url":"https://api.github.com/users/Shredder121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shredder121/subscriptions","organizations_url":"https://api.github.com/users/Shredder121/orgs","repos_url":"https://api.github.com/users/Shredder121/repos","events_url":"https://api.github.com/users/Shredder121/events{/privacy}","received_events_url":"https://api.github.com/users/Shredder121/received_events","type":"User","site_admin":false},"created_at":"2016-12-19T15:43:56Z","updated_at":"2016-12-19T15:43:56Z","body":"Just wondering, does this only happen with Eclipse?\r\nOr what do you know more about this issue?"}}
{"actor":{"display_login":"Shredder121"}}