[ https://issues.apache.org/jira/browse/KAFKA-2113?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao updated KAFKA-2113: --------------------------- Resolution: Fixed Fix Version/s: 0.8.3 Status: Resolved (was: Patch Available) Thanks for the patch. +1 and committed to trunk. > TestPurgatoryPerformance does not compile using IBM JDK > ------------------------------------------------------- > > Key: KAFKA-2113 > URL: https://issues.apache.org/jira/browse/KAFKA-2113 > Project: Kafka > Issue Type: Bug > Reporter: Rajini Sivaram > Assignee: Rajini Sivaram > Fix For: 0.8.3 > > Attachments: KAFKA-2113.patch > > > TestPurgatoryPerformance uses a class from the com.sun package that is not > available in the IBM JDK. > The code does handle the class not found exception at runtime if run with an > IBM JRE (and prints out -1 as CPU time). But as a result of the direct > reference to the com.sun.management.OperatingSystemMXBean class, Kafka core > project no longer compiles with an IBM JDK. > {quote} > :core:compileTestScala/kafka/core/src/test/scala/other/kafka/TestPurgatoryPerformance.scala:88: > type OperatingSystemMXBean is not a member of package com.sun.management > > Some(ManagementFactory.getOperatingSystemMXBean().asInstanceOf[com.sun.management.OperatingSystemMXBean]) > > ^ > one error found > FAILED > {quote} > The JRE-specific class should be dynamically loaded to enable the class to be > compiled as well as run with any JDK. -- This message was sent by Atlassian JIRA (v6.3.4#6332)