Skip to content

Review usages of System.getProperty("java.home") #43050

Closed as not planned
Closed as not planned
@mhalbritter

Description

@mhalbritter

When running in a native image, System.getProperty("java.home") will return null (as there is no Java involved).

The native image team wants to add a warning if this code is called as this can lead to subtle bugs. We should review our System.getProperty("java.home") usages and either remove them if not needed or guard for null / do not execute them when running in a native image.

Metadata

Metadata

Assignees

Labels

status: supersededAn issue that has been superseded by another

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions