Skip to content

Hostname resolution causes issues with Graal #90

@tofflos

Description

@tofflos

The current way of resolving the hostname uses a static initializer under the hood which leads to problems when building a native binary using Graal.

try
{
	this.hostName = InetAddress.getLocalHost().getCanonicalHostName();
}
catch (UnknownHostException e)
{
	this.hostName = UNKNOWN_HOSTNAME;
}

The static initializer within InetAddress is executed at build time on the build system. This causes a crash later on at runtime on the executing system where the results of said initialization isn't available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions