Usage in GraalVM native images not supported
还没有人认领这个 Issue。
评估
调研方向
从 SimpleLibrary.java:63 的 SimpleLibrary.registerClasses 失败以及 native-image 错误中提到的 IsDefinedExpTest 类开始。在 Micronaut GraalVM native image 中重现 Jinjava,并确定所需的兼容性工作;当 native image 运行时不再出现反射实例化失败,即视为完成。
由索引模型根据 Issue 内容生成。
描述
I am trying to use Jinjava with GraalVM by creating a native image using Micronaut.
Unfortunately, jinjava seems not compatible with GraalVM out of the box:
2022-02-28 18:08:00.045 CETCaused by: java.lang.InstantiationException: Type
com.hubspot.jinjava.lib.exptest.IsDefinedExpTestcan not be instantiated reflectively as it does not have a no-parameter constructor or the no-parameter constructor has not been added explicitly to the native image.
Default
2022-02-28 18:08:00.045 CET at java.lang.Class.newInstance(DynamicHub.java:915)
2022-02-28 18:08:00.045 CET at com.hubspot.jinjava.lib.SimpleLibrary.registerClasses(SimpleLibrary.java:63)
- 主要语言
- Java
- 星标
- 785
- 派生
- 184
- 平均合并
- 6 天 22 小时
- 30 天内合并 PR
- 1
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
HubSpot/jinjava 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 64/100
-
Jinjava 3.0 未关闭
-
难度 4/5 3-5 天 新手友好度 35/100
-
难度 3/5 1-2 天 新手友好度 68/100
-
难度 3/5 1-2 天 新手友好度 45/100
相似的 Issue
-
area/plugin
难度 2/5 1-3 小时 新手友好度 75/100
kestra-io/plugin-kestra#190 ·
-
难度 2/5 1-3 小时 新手友好度 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
bug
难度 2/5 1-3 小时 新手友好度 75/100
-
难度 2/5 1-3 小时 新手友好度 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt 未关闭
难度 2/5 1-3 小时 新手友好度 75/100
apache/rocketmq-dashboard#5064 ·