Skip to content

[GR-47047] native-image swallows runtime arguments #6933

@revintec

Description

@revintec

running GraalVM Java version: 20.0.1+9 Enterprise Edition, latest version as of writing
a very simple program that prints main function args

import java.util.*;

class HelloWorld {
    public static void main(String[] args) {
        System.out.println(Arrays.toString(args));
    }
}

when run after compilation
binary a b c outputs [a, b, c] as expected
binary a -Db=1 c outputs [a, c], swallowing the -Db=1 parameter

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions