--- findbugs-1.2.1/src/java/edu/umd/cs/findbugs/Footprint.java.orig 2007-07-05 23:11:58.000000000 +0200 +++ findbugs-1.2.1/src/java/edu/umd/cs/findbugs/Footprint.java 2007-07-05 23:14:15.000000000 +0200 @@ -130,14 +130,8 @@ * ClassCastException on a 1.5-compliant non-sun JRE where the osBean is not a sunBean. * (If compiled by Eclipse, instantiating it will throw an unsubclassed java.lang.Error.) */ public static class OperatingSystemBeanWrapper { - java.lang.management. OperatingSystemMXBean osBean = ManagementFactory.getOperatingSystemMXBean(); - // next line compiles fine with sun JDK 1.5 but the eclipse compiler may complain "The type - // OperatingSystemMXBean is not accessible due to restriction on required library classes.jar" - // depending on the contents of the .classpath file. - com.sun.management.OperatingSystemMXBean sunBean = (com.sun.management.OperatingSystemMXBean)osBean; - public long getProcessCpuTime() { - return sunBean.getProcessCpuTime(); + throw new NoClassDefFoundError(); } }