[jboss-cvs] JBossAS SVN: r73545 - trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed May 21 04:23:09 EDT 2008
Author: adrian at jboss.org
Date: 2008-05-21 04:23:09 -0400 (Wed, 21 May 2008)
New Revision: 73545
Modified:
trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java
trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java
Log:
[JBAS-5355] - Add cast and comment why it is necessary for JDK6 compilation
Modified: trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java 2008-05-21 01:52:06 UTC (rev 73544)
+++ trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerLifecycleCallback.java 2008-05-21 08:23:09 UTC (rev 73545)
@@ -94,6 +94,7 @@
intfClass = jmx.exposedInterface();
registerDirectly = jmx.registerDirectly();
}
+ // NOTE: The cast to Class is necessary for compilation under JDK6
Object mbean = (registerDirectly ? context.getTarget()
: new StandardMBean(context.getTarget(), (Class) intfClass));
MBeanServer server = serviceController.getMBeanServer();
Modified: trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java
===================================================================
--- trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java 2008-05-21 01:52:06 UTC (rev 73544)
+++ trunk/system-jmx/src/main/org/jboss/system/microcontainer/jmx/ServiceControllerRegistrationLifecycleCallback.java 2008-05-21 08:23:09 UTC (rev 73545)
@@ -59,8 +59,9 @@
intfClass = jmx.exposedInterface();
registerDirectly = jmx.registerDirectly();
}
+ // NOTE: The cast to Class is necessary for compilation under JDK6
Object mbean = (registerDirectly ? context.getTarget()
- : new StandardMBean(context.getTarget(), intfClass));
+ : new StandardMBean(context.getTarget(), (Class) intfClass));
MBeanServer server = getServiceController().getMBeanServer();
ClassLoader cl = null;
if (context instanceof InvokeDispatchContext)
More information about the jboss-cvs-commits
mailing list