You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Mark Wick <MW...@loftware.com> on 2019/02/25 20:27:43 UTC
isreachable Condition
I've searched prior conversations and didn't find anything relevant.
With OpenJDK 1.8 and Ant 10.10.5, I am seeing this warning when I try to run the isreachable condition:
"cannot do a proper reachability test on this Java version"
Looking at the org.apache.tools.ant.taskdefs.condition.IsReachable, this call is throwing a NoSuchMethodException:
Method reachableMethod =
InetAddress.class.getMethod(METHOD_NAME, Integer.class);
Shouldn't Integer.class be Integer.TYPE?
Thanks,
Mark
Re: isreachable Condition
Posted by Jaikiran Pai <ja...@apache.org>.
Hello Mark,
You are right - this indeed is a bug (only affect 1.10.x series). I have
pushed a fix which should take care of this and will be available in
next release. Thank you for reporting this.
-Jaikiran
On 26/02/19 1:57 AM, Mark Wick wrote:
> I've searched prior conversations and didn't find anything relevant.
>
> With OpenJDK 1.8 and Ant 10.10.5, I am seeing this warning when I try to run the isreachable condition:
>
> "cannot do a proper reachability test on this Java version"
>
> Looking at the org.apache.tools.ant.taskdefs.condition.IsReachable, this call is throwing a NoSuchMethodException:
>
> Method reachableMethod =
> InetAddress.class.getMethod(METHOD_NAME, Integer.class);
>
>
> Shouldn't Integer.class be Integer.TYPE?
>
>
> Thanks,
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org