File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaMethod.java | File path: /jruby-1.4.0/src/org/jruby/javasupport/JavaMethod.java | |||
Method name: IRubyObject invokeDirectWithExceptionHandling(Method, Object, Object[])
|
Method name: IRubyObject invokeDirectWithExceptionHandling(Method, Object, Object)
|
|||
Number of AST nodes: 3 | Number of AST nodes: 3 | |||
1 | try {↵ | 1 | try {↵ | |
2 | Object result = handle != null↵ | 2 | Object result = handle != null↵ | |
3 | ? handle.invoke(javaInvokee, arguments)↵ | 3 | ? handle.invoke(javaInvokee, arg0)↵ | |
4 | : method.invoke(javaInvokee, arguments);↵ | 4 | : method.invoke(javaInvokee, arg0);↵ | |
5 | return convertReturn(result);↵ | 5 | return convertReturn(result);↵ | |
6 | } catch (IllegalArgumentException iae) {↵ | 6 | } catch (IllegalArgumentException iae) {↵ | |
7 | return handlelIllegalArgumentEx(method, iae, arguments);↵ | 7 | return handlelIllegalArgumentEx(method, iae, arg0);↵ | |
8 | } catch (IllegalAccessException iae) {↵ | 8 | } catch (IllegalAccessException iae) {↵ | |
9 | return handleIllegalAccessEx(method, iae);↵ | 9 | return handleIllegalAccessEx(method, iae);↵ | |
10 | } catch (InvocationTargetException ite) {↵ | 10 | } catch (InvocationTargetException ite) {↵ | |
11 | return handleInvocationTargetEx(ite, method);↵ | 11 | return handleInvocationTargetEx(ite, method);↵ | |
12 | } catch (Throwable t) {↵ | 12 | } catch (Throwable t) {↵ | |
13 | return handleThrowable(t, method);↵ | 13 | return handleThrowable(t, method);↵ | |
14 | } | 14 |
| |
See real code fragment | See real code fragment |
Number of common nesting structure subtrees | 1 |
Number of refactorable cases | 0 |
Number of non-refactorable cases | 1 |
Time elapsed for finding largest common nesting structure subtrees (ms) | 0.5 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 9 |
Number of mapped statements | 3 |
Number of unmapped statements in the first code fragment | 0 |
Number of unmapped statements in the second code fragment | 0 |
Time elapsed for statement mapping (ms) | 1.1 |
Clone type | Type 2 |
ID | Statement | ID | Statement | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | try |
| 1 | try | |||||||||||||||||||||
2 | Object result = handle != null ? handle.invoke(javaInvokee, arguments) : method.invoke(javaInvokee, arguments); |
| 2 | Object result = handle != null ? handle.invoke(javaInvokee, arg0) : method.invoke(javaInvokee, arg0); | |||||||||||||||||||||
3 | return convertReturn(result); | 3 | return convertReturn(result); |
Row | Violation |
---|---|
1 | Type java.lang.Object[] of variable arguments does not match with type java.lang.Object of variable arg0 |
2 | Type java.lang.Object[] of variable arguments does not match with type java.lang.Object of variable arg0 |
3 | Type java.lang.Object[] of variable arguments does not match with type java.lang.Object of variable arg0 |