Usage in GraalVM native images not supported
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start with the failure in SimpleLibrary.registerClasses at SimpleLibrary.java:63 and the IsDefinedExpTest class named in the native-image error. Reproduce Jinjava in a Micronaut GraalVM native image and determine the required compatibility work; done means the native image runs without the reflective-instantiation failure.
Written by the indexing model from the issue text.
Description
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)
- Dominant language
- Java
- Stars
- 785
- Forks
- 184
- Avg merge
- 6d 22h
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from HubSpot/jinjava
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Jinjava 3.0 Open
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
elastic/gradle-plugins#157 ·
-
enhancement Tools
Difficulty 1/5 Under an hour Newbie friendliness 75/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
apache/rocketmq-dashboard#5008 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
-
DETECT_PARAMETER_NAMES=false silently disables @ConstructorProperties-based Creator detection too Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
FasterXML/jackson-databind#6229 ·