File path: /jruby-1.4.0/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java | File path: /jruby-1.4.0/src/org/jruby/runtime/invokedynamic/InvokeDynamicSupport.java | |||
Method name: IRubyObject fallback(JRubyCallSite, ThreadContext, IRubyObject, IRubyObject, String, IRubyObject, Block)
|
Method name: IRubyObject fallback(JRubyCallSite, ThreadContext, IRubyObject, IRubyObject, String, IRubyObject[], Block)
|
|||
Number of AST nodes: 7 | Number of AST nodes: 7 | |||
1 | RubyClass selfClass = pollAndGetClass(context, self);↵ | 1 | RubyClass selfClass = pollAndGetClass(context, self);↵ | |
2 | CacheEntry entry = selfClass.searchWithCache(name);↵ | 2 | CacheEntry entry = selfClass.searchWithCache(name);↵ | |
3 | try {↵ | 3 | try {↵ | |
4 | if (methodMissing(entry, site.callType(), name, caller)) {↵ | 4 | if (methodMissing(entry, site.callType(), name, caller)) {↵ | |
5 | return callMethodMissing(entry, site.callType(), context, self, name, arg0, block);↵ | 5 | return callMethodMissing(entry, site.callType(), context, self, name, args, block);↵ | |
6 | }↵ | 6 | }↵ | |
7 | site.setTarget(createGWT(TEST_1_B, TARGET_1_B, FALLBACK_1_B, entry, site));↵ | 7 | site.setTarget(createGWT(TEST_N_B, TARGET_N_B, FALLBACK_N_B, entry, site));↵ | |
8 | return entry.method.call(context, self, selfClass, name, arg0, block);↵ | 8 | return entry.method.call(context, self, selfClass, name, args, block);↵ | |
9 | } catch (JumpException.BreakJump bj) {↵ | 9 | } catch (JumpException.BreakJump bj) {↵ | |
10 | return handleBreakJump(context, bj);↵ | 10 | return handleBreakJump(context, bj);↵ | |
11 | } catch (JumpException.RetryJump rj) {↵ | 11 | } catch (JumpException.RetryJump rj) {↵ | |
12 | return retryJumpError(context);↵ | 12 | return retryJumpError(context);↵ | |
13 | } finally {↵ | 13 | } finally {↵ | |
14 | block.escape();↵ | 14 | block.escape();↵ | |
15 | } | 15 |
| |
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.6 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 17 |
Number of mapped statements | 7 |
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) | 3.7 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | RubyClass selfClass = pollAndGetClass(context, self); | 1 | RubyClass selfClass = pollAndGetClass(context, self); | |||||||||||||||||
2 | CacheEntry entry = selfClass.searchWithCache(name); | 2 | CacheEntry entry = selfClass.searchWithCache(name); | |||||||||||||||||
3 | try | 3 | try | |||||||||||||||||
4 | if (methodMissing(entry, site.callType(), name, caller)) | 4 | if (methodMissing(entry, site.callType(), name, caller)) | |||||||||||||||||
5 | return callMethodMissing(entry, site.callType(), context, self, name, arg0, block); |
| 5 | return callMethodMissing(entry, site.callType(), context, self, name, args, block); | ||||||||||||||||
6 | site.setTarget(createGWT(TEST_1_B, TARGET_1_B, FALLBACK_1_B, entry, site)); |
| 6 | site.setTarget(createGWT(TEST_N_B, TARGET_N_B, FALLBACK_N_B, entry, site)); | ||||||||||||||||
7 | return entry.method.call(context, self, selfClass, name, arg0, block); |
| 7 | return entry.method.call(context, self, selfClass, name, args, block); |
Row | Violation |
---|---|
1 | Type org.jruby.runtime.builtin.IRubyObject of variable arg0 does not match with type org.jruby.runtime.builtin.IRubyObject[] of variable args |
2 | Type org.jruby.runtime.builtin.IRubyObject of variable arg0 does not match with type org.jruby.runtime.builtin.IRubyObject[] of variable args |