1 Reply Latest reply on Feb 27, 2008 1:40 PM by Adrian Brock

    JDK6 compile issue

    Scott Stark Master

      I mistakingly was using jdk6 to compile the mc, and ran into this compile time incompatibility in the jmx StandardMBean ctor:

      /home/svn/JBossMC/jbossmc/aop-mc-int/src/main/org/jboss/aop/microcontainer/lazy/JBossAOPLazyInitializer.java:[58,58] [deprecation] getType() in org.jboss.reflect.spi.TypeInfo has been deprecated
      
      /home/svn/JBossMC/jbossmc/aop-mc-int/src/main/org/jboss/aop/microcontainer/integration/AOPConstructorJoinpoint.java:[70,58] [deprecation] getType() in org.jboss.reflect.spi.TypeInfo has been deprecated
      
      /home/svn/JBossMC/jbossmc/aop-mc-int/src/main/org/jboss/aop/microcontainer/aspects/jmx/JMXIntroduction.java:[104,44] cannot find symbol
      symbol : constructor StandardMBean(java.lang.Object,java.lang.Class<capture#773 of ?>)
      location: class javax.management.StandardMBean
      


      The problem is that StandardMBean changed from StandardMBean(Object ,Class) to StandardMBean(T , Class&lt;T&gt;). Seems like too strict of behavior by the compiler?