Skip to content

[Native Image] #12377

@mhalbritter

Description

@mhalbritter

Describe the Issue

👋 Creating a project on start.spring.io, Boot 4.0.0-M3 with "Native" dependency: Compiling with native-image 25 works, no problem.

Adding this:

graalvmNative {
    binaries {
        main {
            // complete-reflection-types is the one which breaks it
            buildArgs.add('--future-defaults=all')
        }
    }
}

it breaks with a stacktrace, see attached stack.txt.

Here's the project: demo.zip

Using the latest version of GraalVM can resolve many issues.

GraalVM Version

java version "25" 2025-09-16 LTS
Java(TM) SE Runtime Environment Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01)
Java HotSpot(TM) 64-Bit Server VM Oracle GraalVM 25+37.1 (build 25+37-LTS-jvmci-b01, mixed mode, sharing)

Operating System and Version

Linux workstation 6.16.10-100.fc41.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Oct 2 18:19:14 UTC 2025 x86_64 GNU/Linux

Build Command

./gradlew nativeCompile

Expected Behavior

Should build

Actual Behavior

Fails, see above.

Steps to Reproduce

  1. ./gradlew nativeCompile

Additional Context

Reproducer: demo.zip

Build Log Output and Error Messages

stack.txt

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions