v6: Disable Gson's ReflectionTypeAdapter
@bevzzz 已经在做这个了。
开始于 2025年7月28日。
评估
这个 Issue 还没有评估数据。
描述
JDK 17 made all internal classes strongly encapsulated, meaning reflection cannot be used on them.
We use this workaround --add-opens=java.base/java.lang=ALL-UNNAMED to allow Gson reflective access to all these classes, because we probably don't want to write custom TypeAdapters for each one. Since this isn't something we can "bake into" the JAR itself, we recommend users add that to their command line.
However, the encapsulation introduced in JDK 17 is a security feature and we should see if we can avoid using restrictive access. There's been many discussions about that in the Gson's repo and the consensus seems to be that using reflective de-/serialization is undesirable.
Relevant links:
- 主要语言
- Java
- 星标
- 34
- 派生
- 29
- PR 合并指标
- 30 天内没有已合并 PR
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
weaviate/java-client 的其他 Issue
-
v6: ShardReplica.shardName has no @SerializedName, so the shard is always null可能已有人在做 @dudanogueira 于 27 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 90/100
weaviate/java-client#621 ·
-
v6: Shard.vectorQueueLenght is misspelled, so the vector queue length is always 0可能已有人在做 @dudanogueira 于 27 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
weaviate/java-client#619 ·
-
v6: tenant updates are not split at the server's 100-tenant limit, so activate/deactivate fails above 100可能已有人在做 @dudanogueira 于 39 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 84/100
weaviate/java-client#615 ·
-
v6: NvidiaReranker sends "baseUrl"; the module reads "baseURL"可能已有人在做 @dudanogueira 于 42 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
weaviate/java-client#607 ·
-
v6: rerank cannot be used with BM25, Hybrid or FetchObjects可能已有人在做 @dudanogueira 于 42 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
weaviate/java-client#603 ·
查看 weaviate/java-client 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 85/100
openhab/openhab-addons#21882 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
YunaiV/ruoyi-vue-pro#1273 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
objectionary/eo#9253 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 82/100
objectionary/hone-maven-plugin#1298 ·
维护者通常 1 天内回复