Byteman

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
made check adapters barf on native method - fixes BYTEMAN-109

patched to account for frame entries which were being overlooked -- fixes BYTEMAN-108

hmm, doc changed? resaving just in case -- fixes for BYTEMAN-107

documented helper lifecycle support -- fixes for BYTEMAN-107

added helper lifecycle support and added implementation of lifecycle methods which generate debug trace to the default helper. still needs documenting in th euser guide -- fixes for BYTEMAN-107

    • -0
    • +278
    /src/org/jboss/byteman/agent/HelperManager.java
    • -3
    • +34
    /src/org/jboss/byteman/rule/Rule.java
    • -0
    • +139
    /tests/src/org/jboss/byteman/tests/submit/TestSubmit.java
documented addition of $@ variable -- fixes BYTEMAN-103

emabled use $@ to refer to called method argument array in AT INVOKE rules fixes BYTEMAN-103. n.b. this required serious rewriting of local variable allocation support. still needs documenting in the user guide

    • -2
    • +105
    /src/org/jboss/byteman/agent/Transformer.java
    • -14
    • +24
    /src/org/jboss/byteman/rule/binding/Binding.java
    • -228
    • +229
    /src/org/jboss/byteman/rule/grammar/ECATokenLexer.java
  1. … 3 more files in changeset.
added missing stack management API methods - fixes BYTEMAN-104

added a few missing helper stack management API combinations for consistency and documented APIs -- fixes for BYTEMAN-104

    • -74
    • +150
    /src/org/jboss/byteman/rule/helper/Helper.java
made stack management API consistent and corrected errors in javadoc -- still need to update the user guide

    • -165
    • +333
    /src/org/jboss/byteman/rule/helper/Helper.java
    • -2
    • +14
    /tests/dd/scripts/helpertests/TestStackTrace.txt
moved stack trace helper code from sample jar into default helper and added extra methods for matching caller stack farmes -- still needs documenting -- partial fix for BYTEMAN-104

    • -0
    • +836
    /src/org/jboss/byteman/rule/helper/Helper.java
    • -0
    • +84
    /tests/dd/scripts/helpertests/TestCallerMatches.txt
    • -0
    • +86
    /tests/dd/scripts/helpertests/TestStackTrace.txt
    • -0
    • +195
    /tests/src/org/jboss/byteman/tests/helpertests/TestStackTrace.java
corrected type check method -- fixes BYTEMAN-106

fixed up incorrect AT ENTRY rule ordering and added test to check order for ENTRY and READ/WRITE location types -- fixes BYTEMAN-105

    • -0
    • +10
    /tests/dd/scripts/location/TestEntry.txt
modified semantics of $* to include this in slot 0 of array -- fixes BYTEMAN-102

corrected wrong name in copyright file

corrected defaulting of arguments to trace routine

documented introduction of special variables $!, $^, $# and $* -- fixes BYTEMAN-102 and BYTEMAN-88

added support for new builtin vars $^, $* and $# which are bound to the current throwable on the trigger method stack, an array containing the current values of all the trigger method parameters and a count of the number of trigger method parameters. obviously $^ is only valid in an AT THROW rule. None of these variables are currently assignable. fixes BYTEMAN-101 and BYTEMAN-88

    • -12
    • +40
    /src/org/jboss/byteman/rule/binding/Binding.java
    • -171
    • +171
    /src/org/jboss/byteman/rule/grammar/ECATokenLexer.java
    • -0
    • +38
    /tests/dd/scripts/misc/TestParamBinding.txt
  1. … 5 more files in changeset.
fixed type conversion from Numeric to String so it plants a call to toString() -- fixes BYTEMAN-101

upgrade junit to 4.8.2 BYTEMAN-100

modified Submit class so that it retains order of rules scritps when installing rules -- fixes for BYTEMAN-98

    • -0
    • +30
    /src/org/jboss/byteman/agent/submit/ScriptText.java
    • -31
    • +149
    /src/org/jboss/byteman/agent/submit/Submit.java
allowed HELPER lines outside of rules to specify the helper for subsequent rules when they do not provide their own definition -- also ensured that HELPER inside a RULE does not propagate through to later rules fixes BYTEMAN-96 and BYTEMAN-97

allowed numeric literals to appear where a java.lang.Object is expected. Also fixed an error in the type table where it was failing to install some of the built in object types in the table and then ended up creating more than one copy of the type foiling tests on those types which rely on == working -- fixes BYTEMAN-95

documented -p <package> flag to bytemancheck

added -p <package> flag to bytemancheck.sh so that the type checker can be provided with one or more packages in which to lookup classes for rules whose CLASS is not package qualified e.g. if a rule has CLASS myClass then supplying -p org.myOrg and org.myOrg.internal will mena that the type checker tries to check the rule against class org.myOrg.myClass or,if that is not found, against class org.myOrg.internal.myClass

documented use of ALL in location specifiers -- fixes for BYTEMAN-92

fixes for BYTEMAN-93

    • -0
    • +35
    /tests/dd/scripts/bugfixes/TestPromotePrimitiveToObject.txt
updated syntax for READ, WRITE, INVOKE, SYNCHRONIZE or THROW location specifiers to include the keyword ALL in place of a count causing injection at all occurences in the target method -- fixes for BYTEMAN-92

    • -39
    • +58
    /src/org/jboss/byteman/agent/LocationType.java
  1. … 5 more files in changeset.
creating 1.2.2.1 tag from 1.2. branch

recreating 1.2. branch from latest trunk