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

fieldgenerator fails under client running with JPMS #19

Closed
minborg opened this issue Jun 25, 2020 · 4 comments
Closed

fieldgenerator fails under client running with JPMS #19

minborg opened this issue Jun 25, 2020 · 4 comments
Assignees
Labels
bug Something isn't working
Projects
Milestone

Comments

@minborg
Copy link
Contributor

minborg commented Jun 25, 2020

Reproduce:

cd jpa-streamer-test
mvn clean install -e

Produces:

Caused by: java.lang.ClassNotFoundException: com.speedment.jpastreamer.field.ComparableField
    at java.net.URLClassLoader.findClass (URLClassLoader.java:471)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:588)
    at java.lang.ClassLoader.loadClass (ClassLoader.java:521)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.referenceType (InternalFieldGeneratorProcessor.java:236)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.addFieldToClass (InternalFieldGeneratorProcessor.java:145)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.lambda$generatedEntity$3 (InternalFieldGeneratorProcessor.java:126)
    at java.lang.Iterable.forEach (Iterable.java:75)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.generatedEntity (InternalFieldGeneratorProcessor.java:125)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.generateFields (InternalFieldGeneratorProcessor.java:108)
    at com.speedment.jpastreamer.fieldgenerator.standard.internal.InternalFieldGeneratorProcessor.lambda$process$1 (InternalFieldGeneratorProcessor.java:75)
    at java.util.stream.ForEachOps$ForEachOp$OfRef.accept (ForEachOps.java:183)
    at java.util.stream.ReferencePipeline$2$1.accept (ReferencePipeline.java:177)
    at java.util.Iterator.forEachRemaining (Iterator.java:133)

@minborg minborg added the bug Something isn't working label Jun 25, 2020
@minborg minborg added this to the 0.1.0 milestone Jun 25, 2020
@minborg minborg added this to To do in 1.1.4 via automation Jun 25, 2020
minborg added a commit that referenced this issue Jun 25, 2020
@julgus julgus moved this from To do to In progress in 1.1.4 Jun 29, 2020
@minborg minborg moved this from In progress to To do in 1.1.4 Aug 10, 2020
@minborg minborg modified the milestones: 0.1.0, 0.1.2, 0.1.3 Aug 31, 2020
@minborg minborg modified the milestones: 0.1.3, 0.1.4 Sep 7, 2020
@minborg minborg moved this from To do to To do before release in 1.1.4 Sep 7, 2020
@minborg minborg modified the milestones: 0.1.4, 0.1.5, 0.1.6, 0.1.7, 0.1.8 Sep 7, 2020
@minborg
Copy link
Contributor Author

minborg commented Sep 9, 2020

This is how Lombok is run under JPMS

JDK9+ with module-info.java
The configuration of the compiler plug-in should contain the following:

<annotationProcessorPaths>
	<path>
		<groupId>org.projectlombok</groupId>
		<artifactId>lombok</artifactId>
		<version>1.18.12</version>
	</path>
</annotationProcessorPaths>

@minborg minborg modified the milestones: 0.1.8, 0.1.9 Sep 24, 2020
@minborg minborg modified the milestones: 0.1.9, 1.0.1 Dec 10, 2020
@minborg minborg moved this from To do before release to To do in 1.1.4 Dec 10, 2020
@minborg minborg modified the milestones: 1.0.1, 1.0.2 Jan 17, 2021
@minborg minborg modified the milestones: 1.0.2, 1.0.3 Mar 21, 2021
@julgus julgus removed this from To do in 1.1.4 Sep 1, 2022
@julgus
Copy link
Member

julgus commented Nov 7, 2022

@minborg JPAStreamer is compatible with JPMS att this time, right?

@minborg
Copy link
Contributor Author

minborg commented Nov 7, 2022

Yes. The runtime should work under JPMS. This issue is about the annotation processor.

@julgus julgus modified the milestones: 1.1.1, 1.1.2 Dec 2, 2022
@julgus julgus modified the milestones: 1.1.3, 1.1.4 Feb 16, 2023
@julgus julgus modified the milestones: 1.1.4, 1.1.5 Mar 10, 2023
@julgus julgus modified the milestones: 1.1.5, 3.0.1 Apr 11, 2023
@julgus julgus modified the milestones: 3.0.1, 3.0.2 May 26, 2023
@julgus julgus added this to To do in 3.0.4 May 31, 2023
@julgus julgus moved this from To do to In Progress in 3.0.4 May 31, 2023
@julgus julgus moved this from In Progress to Done in 3.0.4 Jun 2, 2023
@julgus
Copy link
Member

julgus commented Jun 2, 2023

I can no longer replicate this issue. Please reopen if issues arise with the fieldgenerator in association with JPMS.

@julgus julgus closed this as completed Jun 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
3.0.4
Done
Development

No branches or pull requests

2 participants