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

Exceptions thrown by MXBeans wrongly documented in j.l.m.ManagementFactory

XMLWordPrintable

      The javadoc for the method java.lang.management.ManagementFactory.newPlatformMXBeanProxy
      states in Notes 1) and 2) that code using MXBean proxies in the client-side should be
      ready to catch IOException and InvalidObjectException but in fact these exceptions will
      always be wrapped in java.lang.reflect.UndeclaredThrowableException as the interfaces
      for the different platform MXBeans don't declare these expections in the throws clause.

            sballal Sharath Ballal (Inactive)
            lmalvent Luis-Miguel Alventosa (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: