< prev index next >

test/serviceability/dcmd/compiler/MethodIdentifierParser.java

Print this page
rev 7754 : 8071908: Port internal Diagnostic Command tests and test framework to jtreg
Reviewed-by:

*** 49,63 **** methodDescriptor = logString.substring(i2, logString.length()); // Add sanity check for extracted fields } ! public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException, Exception { try { return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray()); } catch (UnexpectedTokenException e) { ! throw new Exception("Parse failed"); } } public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException { ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor); --- 49,63 ---- methodDescriptor = logString.substring(i2, logString.length()); // Add sanity check for extracted fields } ! public Method getMethod() throws NoSuchMethodException, SecurityException, ClassNotFoundException { try { return Class.forName(className).getDeclaredMethod(methodName, getParamenterDescriptorArray()); } catch (UnexpectedTokenException e) { ! throw new RuntimeException("Parse failed"); } } public Class<?>[] getParamenterDescriptorArray() throws ClassNotFoundException, UnexpectedTokenException { ParameterDecriptorIterator s = new ParameterDecriptorIterator(methodDescriptor);
< prev index next >