eclipse-vertx / eclipse-vertx/vertx-codegen

Codegen silently skips some getters

未关闭
#116 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
111
派生
89
PR 合并指标
30 天内没有已合并 PR

描述

Given data object:

```
@DataObject(generateConverter=true)
public class MyDo {
private Map> data;
... JsonObject ctor, toJson, getter/setter
}
```

The converter generated for it silently skips the `Map> getData()` method conversion, does not throw errors during build.

To me, this did not occur at all when service (that defines API using MyDo) used locally, all worked just fine. But once used remotely (via ProxyHelper.registerService), things suddenly broke naturally, as data was simply missing when sent over wire.

Is this intentional? As I got really puzzled where the data goes away?

贡献指南

打开贡献指南

调研方向

首先跟踪 MyDo.getData() getter 的转换器生成过程,并复现 issue 中描述的嵌套 Map> 情况。将本地调用与通过 ProxyHelper.registerService 的远程路径进行比较,并确定缺失字段是有意的限制还是转换 bug;完成的标准是记录该行为,或使 getter 得到一致的转换。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
35/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。