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

Define NoSuchNamespaceException

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P3 P3
    • 7
    • 7
    • core-svc

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: