Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Usage in GraalVM native images not supported

Open
#834 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
java
Domain
backend

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.IsDefinedExpTest can 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from HubSpot/jinjava

All issues in HubSpot/jinjava

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.