loadRuntime(); value.call(this); invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
loadRuntime(); method.pushBoolean(masgnHasHead); invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/impl/MethodBodyCompiler.java File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java
Method name: void issueNextEvent(CompilerCallback) Method name: void ensureMultipleAssignableRubyArray(boolean)
Number of AST nodes: 3 Number of AST nodes: 3
1
loadRuntime();
1
loadRuntime();
2
            value.call(this);
2
        
3
            invokeUtilityMethod("nextLocalJumpError", sig
3
method.pushBoolean(masgnHasHead);
4
(IRubyObject.class, Ruby.class, IRubyObject.class));
4
        invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
Summary
Number of common nesting structure subtrees1
Number of refactorable cases0
Number of non-refactorable cases1
Time elapsed for finding largest common nesting structure subtrees (ms)0.0
Clones locationClones are in different classes having the same super class
Number of node comparisons9
  1. {Non-refactorable}
    Mapping Summary
    Number of mapped statements3
    Number of unmapped statements in the first code fragment0
    Number of unmapped statements in the second code fragment0
    Time elapsed for statement mapping (ms)0.0
    Clone typeType 2
    Mapped Statements
    ID Statement ID Statement
    7
    loadRuntime();
    1
    loadRuntime();
    8
    value.call(this);
    8
    value.call(this);
    3
    invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
    Differences
    Expression1Expression2Difference
    callinvokeUtilityMethodMETHOD_INVOCATION_NAME_MISMATCH
    value.call(this)invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class)))ARGUMENT_NUMBER_MISMATCH
    valueMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression value.call(this) is a void method call, and thus it cannot be parameterized
    Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    Expression value.call(this) is a void method call, and thus it cannot be parameterized
    Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    3
    invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
    9
    invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    9
    invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    2
    method.pushBoolean(masgnHasHead);
    Differences
    Expression1Expression2Difference
    invokeUtilityMethodpushBooleanMETHOD_INVOCATION_NAME_MISMATCH
    invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class))method.pushBoolean(masgnHasHead)ARGUMENT_NUMBER_MISMATCH
    methodMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized
    Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized
    2
    method.pushBoolean(masgnHasHead);
    Precondition Violations (8)
    Row Violation
    1Expression value.call(this) is a void method call, and thus it cannot be parameterized
    2Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    3Expression value.call(this) is a void method call, and thus it cannot be parameterized
    4Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    5Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    6Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized
    7Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    8Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized