Issues using dropwizard 1.0.0-rc2 with lombok
See original GitHub issueCouple of issues I noticed, both i think were due to interactions between lombok and jackson:
- If config classes have @AllArgsConstructor and @Builder annotation at class level, class level defaults are not prepopulated while parsing config YAML file. For example:
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TestConfig {
@NotNull
@NotEmpty
private String value = "Hello";
}
//Used in config
public class MyConfig extends Configuration {
@NotNull
@Valid
@Getter
private TestConfig test = new TestConfig();
}
If the “test” section is omitted in the YAML, d/w will throw an error
- Check the issue: https://github.com/FasterXML/jackson-databind/issues/1122
Both might be related as moving the @Builder to a clas level constructor in case 1 fixes the problem.
This breaks code written in even d/w version 0.9.2 and would seem like a critical to me.
Can jackson be upgraded before 1.0.0 release?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:1
- Comments:6 (3 by maintainers)
Top Results From Across the Web
I'm interested in the downsides of using Lombok, since the ...
That said, we never encountered any Lombok-related problems when running services in the cloud or locally. ... Lombok doesn't come included in Dropwizard....
Read more >Spring Boot Reference Guide
This section provides a brief overview of Spring Boot reference documentation. Think of it as map for the rest of the document. You...
Read more >https://docs.cloudera.com/documentation/other/shar...
OVERVIEW Items appearing in the following notices are provided for the notification and guidance of the recipient in accordance with the listed license....
Read more >Maven Central Repository Search
Official search by the maintainers of Maven Central Repository.
Read more >Veritas Data Insight Third-Party Attributions Guide
the computer on which the problem occurred, in case it is necessary to replicate ... Apache Directory LDAP API Network MINA 1.0.0-RC2.
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

Tested 1.0.0-rc2 with overriden jackson-databind, works fine.
I’m optimistically assuming the problem is resolved, if not, reply back.