Uploaded image for project: 'Application Server 3  4  5 and 6'
  1. Application Server 3 4 5 and 6
  2. JBAS-1704

Access the interface not the implementation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • JBossAS-3.2.7 Final, JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1, JBossAS-4.0.2RC1
    • JMX
    • None

      I have a package private MBean class, the StandardMBean interface is public though!

      class WorkManager implements WorkManagerMBean

      WorkManager is private
      WorkManagerMBean is public

      Unfortunatelly jboss jmx accesses the implementation directly, thus throwing an IllegalAccessException. If it would access the mbean via the provided interface this would not happen. (like jdk 5 is doing)

              dandread1@redhat.com Dimitrios Andreadis
              greydeath_jira Michael Kopp (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d