Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6316491

Problems with @MXBean annotation

    Details

    • Subcomponent:
    • Resolved In Build:
      b53
    • CPU:
      generic
    • OS:
      generic

      Description

      @MXBean annotation works improperly in the following simplest cases.

      1. @MXBean/@MXBean(true)

      @MXBean
      public interface AccessInterface {}

      public class MXBC_SimpleTrue implements AccessInterface {}

        The attempt to register this MXBean in MBeanServer throws NotCompliantMBeanException.


      2. @MXBean(false)

      @MXBean(false)
      public interface MXBNC_SimpleMXBean {}

      public class MXBNC_SimpleFalse implements MXBNC_SimpleMXBean {}

        This is registered perfectly in MBeanServer, after what returned MBeanInfo for this bean
      contains field "mxbean=true".

        Attachments

          Activity

            People

            • Assignee:
              emcmanus Eamonn McManus
              Reporter:
              ashusher Alexander Shusherov (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: