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

JPA Streamer Field Generator Processor syntax errors in generated sources #271

Closed
imdad-sarwar opened this issue Aug 30, 2022 · 6 comments
Closed
Assignees
Labels
bug Something isn't working
Projects
Milestone

Comments

@imdad-sarwar
Copy link

As attached, I tried to compile my gradle project on MAC many times but failed because of syntax errors in your plugin generated sources. All source levels, 17, 16, 11, 8 were tried but compilation failed. Respective scrrenshots attached
User$ java

field_gen_err_java8

field_gen_err_java17

filed_gen_err_java11

@minborg
Copy link
Contributor

minborg commented Aug 31, 2022

Hi and thanks for reporting this issue. Are you able to post the original entity class User so we could reproduce the problem?

@minborg minborg added the bug Something isn't working label Aug 31, 2022
@imdad-sarwar
Copy link
Author

imdad-sarwar commented Aug 31, 2022

Hello, below is the User class code. And also clarify, if code gen works for for Embeddable JPA entities ?

paUser.java.txt

@julgus julgus added the next label Sep 1, 2022
@julgus julgus added this to To do in 1.1.4 via automation Sep 1, 2022
@julgus julgus removed the next label Sep 1, 2022
@julgus julgus moved this from To do to In progress in 1.1.4 Sep 1, 2022
@julgus julgus closed this as completed Sep 2, 2022
1.1.4 automation moved this from In progress to Done Sep 2, 2022
@julgus julgus reopened this Sep 2, 2022
1.1.4 automation moved this from Done to In progress Sep 2, 2022
@julgus julgus moved this from In progress to Done in 1.1.4 Sep 2, 2022
@imdad-sarwar
Copy link
Author

Hi, how can I apply this fix to my code. Shall I remove lombok extensions in order to use JPA streamer library. Still I have same issue and no .class files generating on classpath

@julgus
Copy link
Member

julgus commented Sep 5, 2022

We will issue a new release in our near future pipeline. Pulling the source and building your own snapshot remains an option until then. The Lombok extension pairs well with JPA Streamer and should not cause any trouble.

@laszlo-amptech
Copy link

laszlo-amptech commented Sep 20, 2022

I misdiagnosed this issue. With the field-generator, I am getting the following error now after getting past the previous, when I try to build ...

Execution failed for task ':compileJava'.

java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 148

@julgus julgus closed this as completed in 681baa9 Sep 30, 2022
@julgus julgus added this to the 1.1.0 milestone Sep 30, 2022
@julgus
Copy link
Member

julgus commented Sep 30, 2022

@laszlo-amptech Try the new release. If you are still running into problems, please open a new issue and describe your context in greater detail. Thanks.

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
No open projects
1.1.4
  
Done
Development

No branches or pull requests

4 participants