same property converter names conflict
还没有人认领这个 Issue。
评估
调研方向
使用 Kotlin 类 A、B 和 C 重现该问题,然后检查生成的 ACursor.java、converter 的导入以及字段名生成。完成的标准是,生成的 Java 中两个 converter 都保留对 B.Converter 和 C.Converter 的不同引用。
由索引模型根据 Issue 内容生成。
描述
Is there an existing issue?
- I have searched existing issues
Build info
- ObjectBox version: [4.0.3]
- OS: [Android ]
- Device/ABI/architecture: [arm64-v8a ]
Steps to reproduce
file A.kt:
class A {
@Convert(converter = B.Converter::class, dbType = String::class)
var b:B?=null
@Convert(converter = C.Converter::class, dbType = String::class)
var c:C?=null
}
class B {
class Converter...
}
class C {
class Converter...
}
Expected behavior
generated ACursor.java:
...
import apple.ios.watches.model.B;
import apple.ios.watches.model.C;
...
private final B.Converter bConverter = new B.Converter();
private final C.Converter cConverter = new C.Converter();
...
Actual behavior
generated ACursor.java:
...
import apple.ios.watches.model.B.Converter;
import apple.ios.watches.model.C.Converter;
...
private final Converter bConverter = new Converter();
private final Converter cConverter = new Converter();
...
Code
Code
Logs, stack traces
Logs
- 主要语言
- Java
- 星标
- 4.6k
- 派生
- 311
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
objectbox/objectbox-java 的其他 Issue
-
bug
难度 3/5 1-2 天 新手友好度 35/100
objectbox/objectbox-java#1226 · 2 条评论 ·
-
documentation enhancement
难度 4/5 3-5 天 新手友好度 48/100
objectbox/objectbox-java#1225 · 9 条评论 · 1 个 reaction ·
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
objectbox/objectbox-java#1223 · 1 条评论 · 4 个 reaction ·
-
enhancement
难度 4/5 3-5 天 新手友好度 35/100
objectbox/objectbox-java#1211 · 1 条评论 · 3 个 reaction ·
-
bug
难度 3/5 1-2 天 新手友好度 35/100
objectbox/objectbox-java#1197 · 1 条评论 ·
查看 objectbox/objectbox-java 的全部 Issue
相似的 Issue
-
Bug Java Platform: Java
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-java#6138 · 1 条评论 ·
-
bug needs triage p2
难度 2/5 1-3 小时 新手友好度 78/100
GoogleCloudPlatform/DataflowTemplates#4273 · 1 条评论 ·
-
[Studio][Bug] Bulk-deleting a full page of alert rules steps the page back while more rules remain 未关闭
难度 2/5 1-3 小时 新手友好度 78/100
apache/rocketmq-dashboard#4654 · 1 条评论 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
-
难度 2/5 1-3 小时 新手友好度 76/100