Sophie

Sophie

distrib > Mandriva > 2008.0 > x86_64 > by-pkgid > d8d61226d25972712b6325e5c8d69b5e > files > 11

findbugs-1.2.1-1.1.1mdv2008.0.src.rpm

--- 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();
 		}
 	}