5 Replies Latest reply on Mar 8, 2002 11:11 AM by Trevor Squires

    Juha - potential bugs

    Trevor Squires Novice


      It seems you're actively working in the code right now... I think you might run into problems because of the following bugs.

      ModelMBeanInfoSupport constructor which uses the *Info[] arrays it's passed *must* check for null arrays.

      If it doesn't then you may see classcast exceptions when doing something like this:

      ModelMBeanConstructorInfo[] foo = (ModelMBeanConstructorInfo[]) infoSupport.getConstructors();

      It's because the super() constructor that takes those arrays will create MBean*Info[] arrays rather than ModelMBean*Info[] arrays.

      Also the ModelMBean*Info classes are not creating default descriptors. This will cause code to blow up with NPEs all over the place.