Is "instanceof" supported in conditions?Consider this trivial Java code: public class Foo {
public static void main(final String[] args) throws Exception {
printMessage("Hello");
...
Does Byteman work with Android?Hi all, I would like to know if I can use Byteman on Android. I did try to look through the forum, but there is no search facility and so I may have missed relevant posts. The only relevant post I could find i...
Thread bmcheck returns NullPointerException to a file with two rules
bmcheck returns NullPointerException to a file with two rulesI am using byteman to trace call stack in JGit on Windows 10. First I wrote a byteman rule to trace start of a method. bmckeck reported no error with this script. RULE CheckoutCommand Start
CLASS org.eclipse.j...
Thread Byteman and static code injection. How to inject to class file?
Byteman and static code injection. How to inject to class file?Hello. I have read a lot about dynamic code injection using Byteman. But is it possible to inject code to class files permanently? I would like to inject some code to Java compiled class file and save changed file it...
Byteman and KEmulator?Hello. I was just wondering if it is possible to inject code to games executed by KEmulator or any other Java emulator available for PC. Did anyone tried that? How could I achieve that? Kind regards, byteman user.
Intercept java.lang.Class#getAnnotationHi all, I'm trying to use Byteman to check whether annotations are read. This is my rule: RULE check annotation is not read at runtime
CLASS java.lang.Class
METHOD getAnnotation
IF true
DO THROW new or...
Byteman on JDK14Hi there, I see Byteman has already been upgraded to ASM 7.2.Beta2 to handle JDK14. Will there be a release of Byteman in the near future? Note that ASM 7.2 (final) was released about a week ago: ASM - Versio...
How to print out exception in a method?I am trying to write a byteman rule to capture the exception in my test class, the class is written to throw IndexOutOfBoundsException public void myMethod(PrintWriter out) { ConcurrentMap<St...
Thread Testing Byteman on OpenJDK version 9-ea+170
Testing Byteman on OpenJDK version 9-ea+170Hello all, by reading the jigsaw-dev mailing list I'm aware that several things have been changing around agents, but I didn't see a conclusion. Testing now the Hibernate Search build on latest OpenJDK...
Thread Using BYTEMAN in JUnit test with Arquillian
Using BYTEMAN in JUnit test with ArquillianHi All, I am trying to use BYTEMAN on the client side in a test run with Arquillian: @RunWith(Arquillian.class) So I cannot add: @RunWith(BMUnitRunner.class) What I am trying to do is to m...
Thread Byteman rules seem to be silently ignored on jdk11
Byteman rules seem to be silently ignored on jdk11Hi all, I'm running into an issue where Byteman scripts work as expected on jdk8, but seem like they're just not getting installed on jdk11. I'm not seeing any exceptions or anything, the rules are just being ...
Thread Replacing types in a package x.y with analogs in package a.b?
Replacing types in a package x.y with analogs in package a.b?Say I have an application compiled against types in a package x.y that is no longer available. Suppose that all of these types have been moved to a package a.b. Can I use byteman to transform the application to run in...
Article BMUnit : Using Byteman with JUnit or TestNG from maven and ant
BMUnit : Using Byteman with JUnit or TestNG from maven and antLet's assume you know what Byteman is . . . This is the Part Two (of three) in the Byteman tutorial series, explaining how you can use Byteman to improve the simplicity, quality and coverage of your unit, integ...