Byteman

Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Merge pull request #54 from aptmac/master

fixed spelling mistakes in the readme

Merge pull request #53 from aakoch/master

Fix StringIndexOutOfBoundsException

fixed spelling mistakes in the readme

merge

4.0.0-BETA1 release including minor changes needed to run on jdk9-b148

    • -1
    • +1
    /contrib/rulecheck-maven-plugin/pom.xml
  1. … 7 more files in changeset.
4.0.0-BETA1 release including minor changes needed to run on jdk9-b148

    • -1
    • +1
    /contrib/rulecheck-maven-plugin/pom.xml
  1. … 7 more files in changeset.
Fix StringIndexOutOfBoundsException

Fix in loading the directory where if the property was set a java.lang.StringIndexOutOfBoundsException would always be thrown because the call to charAt was called with the length of the String instead of length - 1.

Initial cut of 4.0.0-BETA1 which uses method handles instead of reflection

  1. … 20 more files in changeset.
refactoring - changing tabulators to spaces and removing lines with only spaces

New rule builder - RuleConstructor as default implementation of rule building

Slightly reworked 4.0.0-BETA versions which now passes deploy

Slightly reworked 4.0.0-BETA versions which now passes deploy

4.0.0-BETA0 release supporting access to module non-public members

  1. … 28 more files in changeset.
4.0.0-BETA0 release supporting access to module non-public members

  1. … 28 more files in changeset.
Merge pull request #52 from spolti/doc-typos

fixing typos

fixing typos

roll over version tags for 4.0.0-ALPHA release

    • -1
    • +1
    /contrib/rulecheck-maven-plugin/pom.xml
[BYTEMAN-328] handling dtest library instrumented classes in concurrent ready way

Adding tests against rule construction

tweaked a few calls to helper out/error/verbose -- part fixes for BYTEMAN-294

Merge pull request #49 from spolti/BYTEMAN-294

[BYTEMAN-294] - Improve internal trace logging

delete asciidoc module from docs pom so we can successfully build using jdk9

modify agent pom so Byteman agent uses ASM6.0_ALPHA -- fix for BYTEMAN-324

[BYTEMAN-294] - Improve internal trace logging

Updating byteman sample ThreadHistoryMonitorHelper to store all events

Updating and refactoring ThreadHistoryMonitorHelper to get stored all

events which happens during program execution.

Till now Map was used with key based on thread name. Thread name can be easily

the same for several threads. History was quite sparse.

By my understanding thread event history should be a log that stores all

events and it's up to developer to query the results.

That's the reson for this change.

    • -1
    • +11
    /sample/scripts/ThreadMonitorHistory.btm
Adding few instrumented class calls to get count info

rolled over pom versions to next snapshot

    • -1
    • +1
    /contrib/rulecheck-maven-plugin/pom.xml
roll over pom versions for 3.0.6 release

    • -1
    • +1
    /contrib/rulecheck-maven-plugin/pom.xml
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
    /agent/src/test/resources/scripts/bugfixes/TestInnerClasses.btm
correct problem running bmunit unit tests with new surefire plugin