question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JPA Annotation Processing problems in Eclipse Oxygen 3a

See original GitHub issue

As requested in #2274 this is a new issue for the annotation processing problems with QueryDSL 4.1.4 and 4.2.1 in Eclipse Oxygen 3a:

java.lang.Exception: java.lang.IllegalArgumentException: Executable, package and module are illegal argument for Types.contains(..)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:169)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.round(RoundDispatcher.java:121)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.BaseAnnotationProcessorManager.processAnnotations(BaseAnnotationProcessorManager.java:159)
	at org.eclipse.jdt.internal.apt.pluggable.core.dispatch.IdeAnnotationProcessorManager.processAnnotations(IdeAnnotationProcessorManager.java:135)
	at org.eclipse.jdt.internal.compiler.Compiler.processAnnotations(Compiler.java:933)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:443)
	at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:419)
	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:372)
	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.compile(BatchImageBuilder.java:187)
	at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:305)
	at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:61)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:256)
	at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:186)
	at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:735)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:206)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:246)
	at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:301)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:304)
	at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:360)
	at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:383)
	at org.eclipse.core.internal.resources.Workspace.buildInternal(Workspace.java:487)
	at org.eclipse.core.internal.resources.Workspace.build(Workspace.java:399)
	at org.eclipse.oomph.setup.internal.core.SetupTaskPerformer$5.run(SetupTaskPerformer.java:3369)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
Caused by: java.lang.IllegalArgumentException: Executable, package and module are illegal argument for Types.contains(..)
	at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.validateRealType(TypesImpl.java:228)
	at org.eclipse.jdt.internal.compiler.apt.model.TypesImpl.erasure(TypesImpl.java:285)
	at com.querydsl.apt.jpa.JPAConfiguration.getRealElementType(JPAConfiguration.java:116)
	at com.querydsl.apt.jpa.JPAConfiguration.getRealType(JPAConfiguration.java:93)
	at com.querydsl.apt.TypeElementHandler.handleEntityType(TypeElementHandler.java:123)
	at com.querydsl.apt.AbstractQuerydslProcessor.processAnnotations(AbstractQuerydslProcessor.java:117)
	at com.querydsl.apt.AbstractQuerydslProcessor.process(AbstractQuerydslProcessor.java:89)
	at org.eclipse.jdt.internal.compiler.apt.dispatch.RoundDispatcher.handleProcessor(RoundDispatcher.java:139)
	... 25 more

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
cnsgithubcommented, Aug 3, 2018

Any progress on this? The problem startet with Eclipse Oxygen 3a and still persists in Photon. It has been a long time since the pull request #2297 has been proposed. I am not using maven and therefore it is somewhat inconvenient to manually copy Q-types generated elsewhere.

1reaction
svpacecommented, Jan 30, 2019

No!!! The PR #2297 solves the issue on Eclipse 2018-12. The problem persists without the patch. Please reopen. Sorry for not making myself clear.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Annotation processing is sometimes not done for all Classes
Bug 533862 - Annotation processing is sometimes not done for all Classes ... I'm using "Eclipse IDE for Java Developers, Version: Oxygen.3a Release...
Read more >
514055 – Annotation processing not used until I ... - Bugs
Summary: Annotation processing not used until I manually enable / disable the APT proc... Add an attachment (proposed patch, testcase, etc.)
Read more >
Eclipse IDE for Java Developers 2021-06 Cannot find class ...
I have built a new machine and installed a fresh version of eclipse (Eclipse IDE for Java Developers 2021-06). If I run an...
Read more >
Eclipse Community Forums: Java Development Tools ... - Eclipse.org
Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 1) there is code: Code: [Select all] [Show/ hide]. import java.io.IOException; import java.sql.
Read more >
Eclipse Community Forums: Java Development Tools (JDT)
Topic Replies Views Last message ??? By: ly life on Mon, 08 July 2019 1 1484 Thu, 11 July 2019 0... New to Java. By:...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found