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.