Skip to content
This repository was archived by the owner on Feb 23, 2023. It is now read-only.
This repository was archived by the owner on Feb 23, 2023. It is now read-only.

Do not set native image system property in NativeListener #1625

Closed
@sdeleuze

Description

@sdeleuze
Contributor

After an initial report by @odrotbohm where the hacking/aot branch of https://github.com/odrotbohm/spring-restbucks demonstrated that just adding the spring-native dependency was breaking Mockito tests, we found the root cause was NativeListener setting the org.graalvm.nativeimage.imagecode system property combined with recent versions of Mockito/ByteBuddy now supporting GraalVM native image and reacting to this property.

It was done initially to increase consistency between JVM AOT and native, but it is probably better to avoid this kind of trick, and just remove any specific behavior based on org.graalvm.nativeimage.imagecode in Spring Framework 6+.

Activity

added this to the 0.12.1 milestone on Jun 2, 2022
self-assigned this
on Jun 2, 2022
added a commit that references this issue on Jun 10, 2022
added a commit that references this issue on Feb 17, 2024
6290ad0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

    Development

    No branches or pull requests

      Participants

      @sdeleuze

      Issue actions

        Do not set native image system property in NativeListener · Issue #1625 · spring-attic/spring-native