Clone Tools
  • last updated 42 mins ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
fix and regression tets for BYTEMAN-376

  1. … 3 more files in changeset.
fix and regression tets for BYTEMAN-376

  1. … 3 more files in changeset.
Disable compilation when injecting into inner classes -- part-fix for BYTEMAN-288

References to inner classes from compiled rule code cause verify

errors. However, these errors can be avoided if instead the ruel code

is interpreted. This fix disables compilation of rule code for any

INTERFACE rule or overriding CLASS (with a ^) rule whose trigger class

is found to be an inner class. Note that these two cases are treated

specially because there are legitimate cases where compilation might

be appropriate for some trigger classes which match the rule but will

cause problems with other matches. If compilation is specified using a

normal (non-overriding) CLASS rule and the target class is an inner

class then that is a spec error so Byteman generates bytecode and an

error results.

This is merely a limited heuristic which has both false positives and

negatives. It can interpret rules whcih might legitimately compile

(e.g. they don't use $0) and pass rules which will still fail to

compile (e.g. $1 is an inner class). It also doesn't detect cases

where the inner class is non-static (guaranteed to fail if we try to

use the inner instance with no handle on the enclosing wrapper

instance). A better fix requires upgarding the type check methods of

Expression classes to detect uses of inner classes and either disable

compilation or throw a type exception.

    • -0
    • +86
    ./TestInnerClasses.btm
  1. … 9 more files in changeset.
fix for BYTEMAN-315

  1. … 1 more file in changeset.
fix and test case for BYTEMAN-304

    • -0
    • +39
    ./TestConstructorArgUpcast.btm
  1. … 6 more files in changeset.
fix and test case for BYTEMAN-302

    • -0
    • +43
    ./TestDoubleEntryBookKeeping.btm
  1. … 3 more files in changeset.
Distinguish between boolean and int local vars -- fixes BYTEMAN-298

    • -0
    • +36
    ./TestBooleanLocal.btm
  1. … 4 more files in changeset.
correct array arg type checking -- fix and test case for BYTEMAN-277

    • -0
    • +36
    ./TestArrayArgTypeCheck.btm
  1. … 3 more files in changeset.
test case for BYTEMAN-275

    • -0
    • +34
    ./TestPlusExpressionCoerce.btm
  1. … 2 more files in changeset.
added test cases for fix to BYTEMAN-258

    • -0
    • +35
    ./TestJoinWaitTimeout.btm
    • -0
    • +35
    ./TestRendezvousTimeout.btm
  1. … 2 more files in changeset.
Fixed BYTEMAN-259 and added test case

    • -0
    • +37
    ./TestMethodClauseReturnTypeDynamic.btm
  1. … 3 more files in changeset.
use correct type for checkcast at update of local var -- fixes BYTEMAN-252

    • -0
    • +34
    ./TestLocalUpdateType.btm
  1. … 4 more files in changeset.
correct stack height computation for fields -- fixes BYTEMAN-253

    • -0
    • +33
    ./TestStackHeight.btm
  1. … 3 more files in changeset.
corrected boolean comparisons and added test case -- fixes for BYTEMAN-246

    • -0
    • +57
    ./TestBooleanComparisons.btm
  1. … 3 more files in changeset.
Test case code for BYTEMAN-236

n.b. this test is not run from the test suite as the related issue has

not yet been resolved

    • -0
    • +34
    ./TestAnonClassCompile.btm
  1. … 2 more files in changeset.
corrected error in stack max computation for method expressions -- fixes BYTEMAN-232

    • -0
    • +37
    ./TestMaxStackComputation.btm
  1. … 4 more files in changeset.
new files for fix to BYTEMAN-219

  1. … 6 more files in changeset.
added test case for

fixed problem with method compilation where it was planting an

invokevirtual where invokeinterface was needed

fixes for BYTEMAN-219

    • -0
    • +43
    ./TestAbstractInterfaceCall.btm
  1. … 4 more files in changeset.
upgraded method param name test to include reference to local variable as well as method params

  1. … 1 more file in changeset.
corrected year in copyright notice

  1. … 1 more file in changeset.
corrected trigger code generatin to use return type of called method for manipualting returned values in AFTER CALL rules and added test case -- fixes BYTEMAN-186

    • -0
    • +35
    ./TestAfterCallAssign.btm
  1. … 3 more files in changeset.
modified throw action so that an Error can be thrown, added test case and updated docs -- fixes BYTEMAN-175

    • -0
    • +36
    ./TestThrowError.btm
  1. … 5 more files in changeset.
fixed BYTEMAN-173 and added test case

  1. … 3 more files in changeset.
fixed BYTEMAN-173 and added test case

    • -0
    • +35
    ./TestThrowRuntimeException.btm
  1. … 3 more files in changeset.
reorganized code and mavenized the build

    • -0
    • +0
    ./TestEnclosedSynchronizationPropagation.btm
  1. … 480 more files in changeset.