File path: /jruby-1.4.0/src/org/jruby/RubyClass.java | File path: /jruby-1.4.0/src/org/jruby/RubyClass.java | |||
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject, Block)
|
Method name: IRubyObject call(ThreadContext, IRubyObject, RubyModule, String, IRubyObject[], Block)
|
|||
Number of AST nodes: 6 | Number of AST nodes: 6 | |||
1 | preBacktraceOnly(context, name);↵ | 1 | preBacktraceOnly(context, name);↵ | |
2 | try {↵ | 2 | try {↵ | |
3 | RubyClass cls = (RubyClass)self;↵ | 3 | RubyClass cls = (RubyClass)self;↵ | |
4 | IRubyObject obj = cls.allocate();↵ | 4 | IRubyObject obj = cls.allocate();↵ | |
5 | cls.baseCallSites[CS_IDX_INITIALIZE].call(context, self, obj, arg0, block);↵ | 5 | cls.baseCallSites[CS_IDX_INITIALIZE].call(context, self, obj, args, block);↵ | |
6 | return obj;↵ | 6 | return obj;↵ | |
7 | } finally {↵ | 7 | } finally {↵ | |
8 | postBacktraceOnly(context);↵ | 8 | postBacktraceOnly(context);↵ | |
9 | } | 9 |
| |
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.1 |
Clones location | Clones are declared in the same class |
Number of node comparisons | 26 |
Number of mapped statements | 6 |
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.6 |
Clone type | Type 2 |
ID | Statement | ID | Statement | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | preBacktraceOnly(context, name); | 1 | preBacktraceOnly(context, name); | |||||||||||||||
2 | try | 2 | try | |||||||||||||||
3 | RubyClass cls = (RubyClass)self; | 3 | RubyClass cls = (RubyClass)self; | |||||||||||||||
4 | IRubyObject obj = cls.allocate(); | 4 | IRubyObject obj = cls.allocate(); | |||||||||||||||
5 | cls.baseCallSites[CS_IDX_INITIALIZE].call(context, self, obj, arg0, block); |
| 5 | cls.baseCallSites[CS_IDX_INITIALIZE].call(context, self, obj, args, block); | ||||||||||||||
6 | return obj; | 6 | return obj; |
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 |