[Bug 384] New: InetAddress.isReachable() not defined

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Fri Sep 11 12:46:41 PDT 2009


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=384

           Summary: InetAddress.isReachable() not defined
           Product: IcedTea
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: IcedTea
        AssignedTo: unassigned at icedtea.classpath.org
        ReportedBy: ian.springer at gmail.com


I get the below compile error from openjdk6 on Fedora when trying to compile a
class that calls InetAddress.isReachable(int):

#
[INFO] Compiling 1 source file to
/home/thesteve04/workspace/rhq/modules/plugins/netservices/target/classes
#
[INFO] ------------------------------------------------------------------------
#
[ERROR] BUILD FAILURE
#
[INFO] ------------------------------------------------------------------------
#
[INFO] Compilation failure
#

#
could not parse error message: ----------
#
1. ERROR in
/home/thesteve04/workspace/rhq/modules/plugins/netservices/src/main/java/org/rhq/plugins/netservices/PingNetServiceComponent.java
(at line 75)
#
        return address.isReachable(5000) ? AvailabilityType.UP :
AvailabilityType.DOWN;
#
                       ^^^^^^^^^^^
#

#
no more tokens - could not parse error message: The method isReachable(int) is
undefined for the type InetAddress
#
----------
#
2. ERROR in
/home/thesteve04/workspace/rhq/modules/plugins/netservices/src/main/java/org/rhq/plugins/netservices/PingNetServiceComponent.java
(at line 93)
#
        address.isReachable(5000);
#
                ^^^^^^^^^^^

The output from java -version is:

java version "1.6.0_0"
OpenJDK Runtime Environment (IcedTea6 1.5) (fedora-27.b16.fc11-i386)
OpenJDK Server VM (build 14.0-b15, mixed mode)

Is this because isReachable isn't implemented by Classpath? If not, are there
plans to implement it?


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list