x10-lang / x10

Core implementation of X10 programming language including compiler, runtime, class libraries, sample programs and test suite
Eclipse Public License 1.0
70 stars 15 forks source link

[APGAS] Fix ignored UnknownHostException in selecting a good ip for the host while booting #33

Open faramir opened 3 years ago

faramir commented 3 years ago

host variable has form IP:port, so the (ignored) exception occurs:

java.net.UnknownHostException: 192.168.0.100:5701: invalid IPv6 address
        at java.net.InetAddress.getAllByName(InetAddress.java:1170)
        at java.net.InetAddress.getAllByName(InetAddress.java:1127)
        at java.net.InetAddress.getByName(InetAddress.java:1077)
        at apgas.impl.GlobalRuntimeImpl.<init>(GlobalRuntimeImpl.java:289)
        at apgas.GlobalRuntime$GlobalRuntimeWrapper.<clinit>(GlobalRuntime.java:41)
        at apgas.GlobalRuntime.getRuntimeImpl(GlobalRuntime.java:65)
        at apgas.GlobalRuntime.getRuntime(GlobalRuntime.java:56)
        at apgas.GlobalRuntime.main(GlobalRuntime.java:98)

Removing port part from the host name fixes the issue.