loadThreadContext(); value.call(this); method.invokevirtual(p(RubyRegexp.class), "op_match", sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class)));
loadRuntime(); value.call(this); invokeUtilityMethod("breakLocalJumpError", 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 match2(CompilerCallback) Method name: void issueBreakEvent(CompilerCallback)
Number of AST nodes: 3 Number of AST nodes: 3
1
loadThreadContext();
1
load
2
Runtime();
2
        value.call(this);
3
            value.call(this);
3
        method.invokevirtual(p(RubyRegexp.class), "op_match", sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class)));
4
            invokeUtilityMethod("breakLocalJumpError", 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
    loadThreadContext();
    1
    loadThreadContext();
    8
    loadRuntime();
    Differences
    Expression1Expression2Difference
    loadThreadContextloadRuntimeMETHOD_INVOCATION_NAME_MISMATCH
    Preondition Violations
    Expression loadThreadContext() is a void method call, and thus it cannot be parameterized
    Expression loadRuntime() is a void method call, and thus it cannot be parameterized
    8
    loadRuntime();
    2
    value.call(this);
    9
    value.call(this);
    3
    method.invokevirtual(p(RubyRegexp.class), "op_match", sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class)));
    3
    method.invokevirtual(p(RubyRegexp.class), "op_match", sig(IRubyObject.class, params(ThreadContext.class, IRubyObject.class)));
    10
    invokeUtilityMethod("breakLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    Differences
    Expression1Expression2Difference
    invokevirtualinvokeUtilityMethodMETHOD_INVOCATION_NAME_MISMATCH
    method.invokevirtual(p(RubyRegexp.class),"op_match",sig(IRubyObject.class,params(ThreadContext.class,IRubyObject.class)))invokeUtilityMethod("breakLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class))ARGUMENT_NUMBER_MISMATCH
    methodMISSING_METHOD_INVOCATION_EXPRESSION
    Preondition Violations
    Expression method.invokevirtual(p(RubyRegexp.class),"op_match",sig(IRubyObject.class,params(ThreadContext.class,IRubyObject.class))) is a void method call, and thus it cannot be parameterized
    Expression invokeUtilityMethod("breakLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    Expression method.invokevirtual(p(RubyRegexp.class),"op_match",sig(IRubyObject.class,params(ThreadContext.class,IRubyObject.class))) is a void method call, and thus it cannot be parameterized
    Expression invokeUtilityMethod("breakLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    10
    invokeUtilityMethod("breakLocalJumpError", sig(IRubyObject.class, Ruby.class, IRubyObject.class));
    Precondition Violations (6)
    Row Violation
    1Expression loadThreadContext() is a void method call, and thus it cannot be parameterized
    2Expression loadRuntime() is a void method call, and thus it cannot be parameterized
    3Expression method.invokevirtual(p(RubyRegexp.class),"op_match",sig(IRubyObject.class,params(ThreadContext.class,IRubyObject.class))) is a void method call, and thus it cannot be parameterized
    4Expression invokeUtilityMethod("breakLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized
    5Expression method.invokevirtual(p(RubyRegexp.class),"op_match",sig(IRubyObject.class,params(ThreadContext.class,IRubyObject.class))) is a void method call, and thus it cannot be parameterized
    6Expression invokeUtilityMethod("breakLocalJumpError",sig(IRubyObject.class,Ruby.class,IRubyObject.class)) is a void method call, and thus it cannot be parameterized