Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1565

Allow ClientTest.java build with IBM Java

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4.4
    • Fix Version/s: 3.4.4
    • Component/s: tests
    • Labels:
    • Environment:

      Linux, RHEL 6.3, IBM Java 6 SR 11

      Description

      The org.apache.zookeeper.test.ClientTest class imports the com.sun.management.UnixOperatingSystemMXBean class, that fail to build when using IBM Java 6 SR 11. This issue is resolved by new class OSMXBean class proposed in JIRA's 1474.

      The class OSMXBean (org.apache.zookeeper.server.util.OSMXBean) is a wrapper for the implementation of com.sun.management.UnixOperatingSystemMXBean, and decides to use the SUN API or its own implementation depending on the runtime (vendor) used.

        Attachments

        1. zookeeper-1565.patch
          2 kB
          Paulo Ricardo Paz Vital

        Issue Links

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pvital Paulo Ricardo Paz Vital

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment