jdk/src/share/classes/sun/management/VMOptionCompositeData.java
changeset 401 ef01e0dccd63
parent 2 90ce3da70b43
child 715 f16baef3a20e
equal deleted inserted replaced
399:bcc2354430ff 401:ef01e0dccd63
    67             return new CompositeDataSupport(vmOptionCompositeType,
    67             return new CompositeDataSupport(vmOptionCompositeType,
    68                                             vmOptionItemNames,
    68                                             vmOptionItemNames,
    69                                             vmOptionItemValues);
    69                                             vmOptionItemValues);
    70         } catch (OpenDataException e) {
    70         } catch (OpenDataException e) {
    71             // Should never reach here
    71             // Should never reach here
    72             throw Util.newInternalError(e);
    72             throw new AssertionError(e);
    73         }
    73         }
    74     }
    74     }
    75 
    75 
    76     private static final CompositeType vmOptionCompositeType;
    76     private static final CompositeType vmOptionCompositeType;
    77     static {
    77     static {
    78         try {
    78         try {
    79             vmOptionCompositeType = (CompositeType)
    79             vmOptionCompositeType = (CompositeType)
    80                 MappedMXBeanType.toOpenType(VMOption.class);
    80                 MappedMXBeanType.toOpenType(VMOption.class);
    81         } catch (OpenDataException e) {
    81         } catch (OpenDataException e) {
    82             // Should never reach here
    82             // Should never reach here
    83             throw Util.newInternalError(e);
    83             throw new AssertionError(e);
    84         }
    84         }
    85     }
    85     }
    86 
    86 
    87     static CompositeType getVMOptionCompositeType() {
    87     static CompositeType getVMOptionCompositeType() {
    88         return vmOptionCompositeType;
    88         return vmOptionCompositeType;