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 tryProxyInvocation(Object, Object)
|
Method name: IRubyObject tryProxyInvocation(Object, Object[])
|
|||
Number of AST nodes: 5 | Number of AST nodes: 5 | |||
1 | JavaProxyClass jpc = ((InternalJavaProxy) javaInvokee).___getProxyClass();↵ | 1 | JavaProxyClass jpc = ((InternalJavaProxy) javaInvokee).___getProxyClass();↵ | |
2 | JavaProxyMethod jpm;↵ | 2 | JavaProxyMethod jpm;↵ | |
3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) {↵ | 3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) {↵ | |
4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, arg0);↵ | 4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, args);↵ | |
5 | } else {↵ | 5 | } else {↵ | |
6 | return invokeDirectWithExceptionHandling(method, javaInvokee, arg0);↵ | 6 | return invokeDirectWithExceptionHandling(method, javaInvokee, args);↵ | |
7 | } | 7 |
| |
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 | 13 |
Number of mapped statements | 5 |
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.8 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | JavaProxyClass jpc = ((InternalJavaProxy)javaInvokee).___getProxyClass(); | 1 | JavaProxyClass jpc = ((InternalJavaProxy)javaInvokee).___getProxyClass(); | |||||||||||||||
2 | JavaProxyMethod jpm; | 2 | JavaProxyMethod jpm; | |||||||||||||||
3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) | 3 | if ((jpm = jpc.getMethod(method.getName(), parameterTypes)) != null && jpm.hasSuperImplementation()) | |||||||||||||||
4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, arg0); |
| 4 | return invokeDirectSuperWithExceptionHandling(jpm.getSuperMethod(), javaInvokee, args); | ||||||||||||||
else | else | |||||||||||||||||
5 | return invokeDirectWithExceptionHandling(method, javaInvokee, arg0); |
| 5 | return invokeDirectWithExceptionHandling(method, javaInvokee, args); |
Row | Violation |
---|---|
1 | Type java.lang.Object of variable arg0 does not match with type java.lang.Object[] of variable args |
2 | Type java.lang.Object of variable arg0 does not match with type java.lang.Object[] of variable args |