Not compatible with lombok
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
The reported example is in guide-for-java-devs.pdf and spans Wiki.java, WikiDbService.java, and WikiDbServiceImpl.java. Reproduce the compilation failure with Lombok's @AllArgsConstructor, then trace the Java code-generation path involved. Done means the example compiles with the generated two-argument constructor, with a regression test if the repository has a suitable location.
Written by the indexing model from the issue text.
Description
This is a code example in the book (guide-for-java-devs.pdf), and I made a piece of changes.
Wiki.javacorresponds with the database table:
@AllArgsConstructor
public class Wiki {
public Long id;
public String name;
}
WikiDbService.java
@ProxyGen
public interface WikiDbService {
@Fluent
WikiDbService fetchAll(Handler<AsyncResult<JsonArray>> resultHandler);
@GenIgnore
static WikiDbService create(JDBCClient dbClient, Handler<AsyncResult<WikiDbService>> readyHandler) {
return new WikiDbServiceImpl(dbClient, readyHandler);
}
@GenIgnore
static WikiDbService createProxy(Vertx vertx, String address) {
return new WikiDbServiceVertxEBProxy(vertx, address);
}
}
WikiDbServiceImpl.java
@Override
public WikiDbService fetchAll(Handler<AsyncResult<JsonArray>> resultHandler) {
dbClient.query(FETCH_ALL_SQL, queryAr -> {
if (queryAr.failed()) {
resultHandler.handle(Future.failedFuture(queryAr.cause()));
return;
}
ResultSet resultSet = queryAr.result();
List<Wiki> wikiList = resultSet.getResults().stream()
.map(r -> new Wiki(r.getLong(0), r.getString(1)))
.collect(Collectors.toList());
resultHandler.handle(Future.succeededFuture(new JsonArray(new Gson().toJson(wikiList))));
});
return this;
}
Finally, I got a compilation error:

it means that there no suitable constructor for Wiki class with 2 arguments ....
But If I generate the constructor:
public class Wiki {
public Long id;
public String name;
public Wiki(Long id, String name) {
this.id = id;
this.name = name;
}
}
It works.
So I think it's not compatible with lombok ...
- Dominant language
- Java
- Stars
- 111
- Forks
- 88
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from eclipse-vertx/vertx-codegen
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 15/100
eclipse-vertx/vertx-codegen#361 ·
-
help wanted
Difficulty 4/5 3-5 days Newbie friendliness 35/100
eclipse-vertx/vertx-codegen#340 · 11 comments · 2 reactions ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#335 ·
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
eclipse-vertx/vertx-codegen#320 · 4 comments ·
-
bug
Difficulty 3/5 1-2 days Newbie friendliness 45/100
eclipse-vertx/vertx-codegen#319 · 1 comment · 1 reaction ·
All issues in eclipse-vertx/vertx-codegen
Similar issues
-
[BUG] Re-subscribing the Mono returned by listTools/listResources/listResourceTemplates/listPrompts/listRoots duplicates the resultsPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
modelcontextprotocol/java-sdk#1174 · 1 reaction ·
Maintainers usually reply within 2 days
-
module: core
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bigbluebutton/bigbluebutton#26028 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
MetricsHub/metricshub-community#1390 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
apache/rocketmq-dashboard#6331 ·
Maintainers usually reply within 5 days
-
status: team-only type: dependency-upgrade
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
spring-projects/spring-boot#52143 · 1 comment ·
Maintainers usually reply within 1 day