[arquillian-issues] [JBoss JIRA] (ARQ-1866) Warp: make compilable with JDK 6

Jiří Štefek (JIRA) issues at jboss.org
Tue Oct 7 03:02:13 EDT 2014


Jiří Štefek created ARQ-1866:
--------------------------------

             Summary: Warp: make compilable with JDK 6
                 Key: ARQ-1866
                 URL: https://issues.jboss.org/browse/ARQ-1866
             Project: Arquillian
          Issue Type: Enhancement
          Components: Extension - Warp
            Reporter: Jiří Štefek


It would be good if the Warp can be compilable with older JDK.

The project is not compilable with jdk 6 because of method which was added in java 7 used on [this line|https://github.com/arquillian/arquillian-extension-warp/blob/master/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/DefaultURLMapping.java#L73]. 
Imho it could be replaced with:
{code}
try {
  return Inet4Address.getByName(null);
} catch (UnknownHostException ex) {
  throw new RuntimeException(ex);
}
{code}
>From the javadoc of this method:
bq. If the host is null then an InetAddress representing an address of the loopback interface is returned. See RFC 3330 section 2 and RFC 2373 section 2.5.3.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)



More information about the arquillian-issues mailing list