Compile with -parameters flag for reflection
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 928
- 派生
- 227
- PR 合并指标
- 30 天内没有已合并 PR
描述
I'm trying to do some reflection based codegen from your op creation methods (the stuff in Ops), specifically for more idiomatic kotlin methods (default args instead of Options). However, since parameter names aren't present for reflection, making these match is currently quite a pain (I'm pulling and parsing the api_def protos).
I doubt I'm only person who will be doing codgen, this would be very helpful for anyone who tries to.
Afaik it's extremely easy to enable in maven, I'd make a PR but I don't want to touch build logic.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 Ops 中 Java 代码的 Maven 构建配置和编译设置。确认 reflection 目前如何公开方法参数,以及 api_def protos 如何用于代码生成。完成的标准是项目使用 -parameters 标志进行编译,以便基于 reflection 的生成器能够获取参数名称。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java
- 领域
- build-system
- Issue 类型
- 功能
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100