Skip to content

Native Image building fails with JUnit Platform 5.9.0 #300

Closed
@melix

Description

@melix

Building a Micronaut application which uses JUnit Platform 5.9.0 will fail with the following error:

Error: java.util.concurrent.ExecutionException: com.oracle.graal.pointsto.constraints.UnsupportedFeatureException: No instances of org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener 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=org.junit.platform.reporting.open.xml.OpenTestReportGeneratingListener.

A hotfix was deployed in Micronaut Test: https://github.com/micronaut-projects/micronaut-test/pull/618/files#diff-020ea83d544d7fe86f8cc9bdbcf3eba4bd2d37bb3ed842d10eae76b4bf9a3c6e

But a "real" fix needs to be implemented in JUnitPlatformFeature.

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingjunit-supportRelated to JUnit Support project

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions