@id annotation doesn't work after recompilation
See original GitHub issueI have an issue with the field annotated with @id
.
If the case class declaration goes after the class that calls toCC
, the id
field is not filled in.
If I move the case class to the beginning of the file, everything works well.
It is not a big issue when all your code is in the single file, but when the case classes are in a separate file, the id
is filled depending on the order the sources are compiled - sometimes it works and after the gradle clean
it doesn’t.
Issue Analytics
- State:
- Created 7 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
Annotation @SequenceGenerator and compilation error
i am just running into this issue when migrating from 1.6 to 1.8. The problem here was that @javax.
Read more >Incremental annotation processor lists many originating ...
Class dependency analysis for incremental compilation took 0.013 secs. Full recompilation is required because the generated type 'test.
Read more >Improve code inspection with annotations
Learn how annotations allow you to provide hints to code inspections tools like Lint, to help detect these more subtle code problems.
Read more >An Introduction to Annotations and Annotation Processing ...
Annotations provide information to a program at compile time or at runtime based on which the program can take further action.
Read more >Annotation processing doesn't work in Maven projects
The issue is with annotation processing inside the IDE (the new feature of 6.9) not at compilation time. When i use Lombok for...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’d say you have at least these alternatives:
@mpollmeier Unfortunately, not an option for us. =( We get ids from external system and they are
UUID
s