loadRuntime(); method.pushBoolean(masgnHasHead); invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
loadRuntime(); value.call(this); invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
Clone fragments detected by clone detection tool
File path: /jruby-1.4.0/src/org/jruby/compiler/impl/BaseBodyCompiler.java File path: /jruby-1.4.0/src/org/jruby/compiler/impl/RootScopedBodyCompiler.java
Method name: void ensureMultipleAssignableRubyArray(boolean) Method name: void issueNextEvent(CompilerCallback)
Number of AST nodes: 3 Number of AST nodes: 3
1
loadRuntime();
1
loadRuntime();
2
        method.pushBoolean(masgnHasHead);
2
        
3
        invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params
3
    value.call(this);
4
(IRubyObject.class, Ruby.class, boolean.class)));
4
            invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.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
    1
    loadRuntime();
    7
    loadRuntime();
    2
    method.pushBoolean(masgnHasHead);
    2
    method.pushBoolean(masgnHasHead);
    9
    invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    Differences
    Expression1Expression2Difference
    pushBooleaninvokeUtilityMethodMETHOD_INVOCATION_NAME_MISMATCH
    method.pushBoolean(masgnHasHead)invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class))ARGUMENT_NUMBER_MISMATCH
    methodMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    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
    Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    9
    invokeUtilityMethod("nextLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    3
    invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
    3
    invokeUtilityMethod("ensureMultipleAssignableRubyArray", sig(RubyArray.class, params(IRubyObject.class, Ruby.class, boolean.class)));
    8
    value.call(this);
    Differences
    Expression1Expression2Difference
    invokeUtilityMethodcallMETHOD_INVOCATION_NAME_MISMATCH
    invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class)))value.call(this)ARGUMENT_NUMBER_MISMATCH
    valueMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    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
    Expression value.call(this) is a void method call, and thus it cannot be parameterized
    8
    value.call(this);
    Precondition Violations (8)
    Row Violation
    1Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized
    2Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    3Expression method.pushBoolean(masgnHasHead) is a void method call, and thus it cannot be parameterized
    4Expression invokeUtilityMethod("nextLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    5Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    6Expression value.call(this) is a void method call, and thus it cannot be parameterized
    7Expression invokeUtilityMethod("ensureMultipleAssignableRubyArray",sig(RubyArray.class,params(IRubyObject.class,Ruby.class,boolean.class))) is a void method call, and thus it cannot be parameterized
    8Expression value.call(this) is a void method call, and thus it cannot be parameterized