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

MLetContent class should be public

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 6
    • Fix Version/s: 6
    • Component/s: core-svc
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b25
    • CPU:
      generic
    • OS:
      generic

      Description

      One of the changes specified for JMX 1.2 was that the MLet.check
      method should be made protected so it could be overridden in
      subclasses of MLet. This is bug 4619509, also 4716826 ("Implement
      VERSION tag in MLet"). A necessary part of this fix was that
      the MLetContent class needed to be made public.

      The consequence of this bug is that the JMX API is inconsistent, in
      that a publicly-visible method references a non-visible class. Though
      the documentation says you can override this method, in practice you
      can't. The change is rendered useless by this problem. Also, the
      specification is inconsistent with the Change Log for the 1.2 MR,
      which says the class is public.

      This also leaves us in an awkward position as regards independent
      implementors, who will be obliged to add an unspecified MLetContent
      class to their implementations in order to be signature compatible.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                sjiang Shanliang Jiang (Inactive)
                Reporter:
                emcmanus Eamonn McManus
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: