hotspot/test/serviceability/dcmd/compiler/MethodIdentifierParser.java
changeset 28821 f7820f311663
parent 26941 96aa76b27b9c
equal deleted inserted replaced
28820:1837a69c2a22 28821:f7820f311663
    49         methodDescriptor  = logString.substring(i2, logString.length());
    49         methodDescriptor  = logString.substring(i2, logString.length());
    50 
    50 
    51         // Add sanity check for extracted fields
    51         // Add sanity check for extracted fields
    52     }
    52     }
    53 
    53 
    54     public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException, Exception {
    54     public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException {
    55         try {
    55         try {
    56             return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray());
    56             return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray());
    57         } catch (UnexpectedTokenException e) {
    57         } catch (UnexpectedTokenException e) {
    58             throw new Exception("Parse failed");
    58             throw new RuntimeException("Parse failed");
    59         }
    59         }
    60     }
    60     }
    61 
    61 
    62     public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException {
    62     public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException {
    63         ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor);
    63         ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor);