[QUESTION] 咨询一个关于泛型枚举 Enum 中使用 @JSONField(value = true) GraalVM不生效,需要哪些配置么?
Open
question
- Dominant language
- Java
- Stars
- 4.4k
- Forks
- 613
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 6
Description
### 请描述您的问题
*咨询一个关于泛型枚举中使用 @JSONField(value = true) 本地调试可以使用 使用 GraalVM编译启动不生效,需要哪些配置么?*
```java
public interface IEnum {
@JSONField(value = true)
T getValue();
}
```
从这个里面找到资料最后调整的配置
https://github.com/alibaba/fastjson2/issues/1501
目前临时的解决办法是 在子枚举中 每一个 getValue 配置了一下 @JSONField(value = true)
Contributor guide
Research direction
Start with the IEnum interface and its getValue() annotation, then compare the requested GraalVM behavior with the configuration described in issue 1501. Reproduce the difference between local execution and the GraalVM build; done means identifying and documenting the required configuration or confirming the child-enum workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100