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

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: JBossAS-3.2.7 Final, JBossAS-4.0.1 Final, JBossAS-4.0.1 SP1, JBossAS-4.0.2RC1
    • Component/s: JMX
    • Labels:
      None

      Description

      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)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dimitris Dimitrios Andreadis
                Reporter:
                GreyDeath Michael Kopp
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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