Skip to content

Native Image Support #842

Open
Open
@driverpt

Description

@driverpt

Is your feature request related to a problem? Please describe.
Currently we are trying to add this library to a Micronaut GraalVM Application and we're getting errors like:

org.graalvm.compiler.debug.GraalError: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of net.logstash.logback.pattern.AbstractJsonPatternParser$LayoutValueGetter are allowed in the image heap as this class should be initialized at image runtime. To see how this object got instantiated use --trace-object-instantiation=net.logstash.logback.pattern.AbstractJsonPatternParser$LayoutValueGetter.

This happens for all Static Classes

Describe the solution you'd like
Is there any way of adding a native-image.properties to make GraalVM Image possible?

Describe alternatives you've considered
Creating a custom serializer

Additional context
Micronaut 3.6.0 with AOT + GraalVM

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions