-
Notifications
You must be signed in to change notification settings - Fork 35
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
String Index Out of Bounds Error when compiling project with fieldgenerator #274
Comments
So, I have discovered that the following annotations also cause this error ... @NotNull(groups = { DatabaseGroup.class }) If I remove all of these, then the StringINdexOutOfBoundsException goes away. As I reintroduce these one by one, that error returns. |
not sure why the above post messed with the capitalization but the notempty and the size ones should be Pascal case like the other two |
So, once I removed these annotations, I was getting different errors. So, these entities also have some Helper methods that the Field Generator must be analyzing as well, and for some reason it sees two overloads that have the same method name as being the same. Duplicate key setLocalDateValue (attempted merging values setLocalDateValue(java.lang.String,java.lang.String) and setLocalDateValue(java.lang.String,java.time.LocalDate)) When I removed the field-generator reference, the code builds/compiles just fine. I should think that field generator would ignore methods and look only for properties. |
I will look around in the TypeParser to see what I can find in there. I'm assuming that's what is causing the error. |
Hi, I am so sorry for not paying attention to this any sooner. I understand you probably moved on to other tasks long ago but I'll try to follow up anyway. I have attempted, but failed, to replicate this issue in the current version (3.0.1). My attempt is checked in as a branch on the JPAStreamer demo repository here: https://github.com/speedment/jpa-streamer-demo/tree/issue-274. To summarize, I tried to replicate your examples by creating two groups; Group A and Group B. Annotating the Film.title and Film.length as follows:
There are no compilation errors when running the fieldgenerator. Am I missing something? |
Since I cannot reproduce this problem and haven't heard back from you I will close the issue. If you disagree with my decision, please reopen it. |
annotationProcessor 'com.speedment.jpastreamer:fieldgenerator-standard:1.0.1'
When attempting to build the project, I get this error.
Execution failed for task ':compileJava'.
I saw this with regard to the error, and have brought the development branch down that is supposed to have resolved this issue and used that build
#160
But am having this issue still.
The text was updated successfully, but these errors were encountered: