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

Define NoSuchNamespaceException

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 7
    • Fix Version/s: 7
    • Component/s: core-svc
    • Labels:

      Description

      The method JMXNamespaces.narrowToNamespace(MBeanServerConnection, String) throws IllegalArgumentException if either argument is null (though that is not yet documented), OR if the namespace does not exist. These are two fundamentally different things and it is unhelpful for the same exception to cover both of them. We should define a new NoSuchNamespaceException for this and similar cases (notably ClientContext.withContext). It should be a RuntimeException.

        Attachments

          Activity

            People

            • Assignee:
              dfuchs Daniel Fuchs
              Reporter:
              emcmanus Eamonn McManus
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: