-
Bug
-
Resolution: Done
-
Major
-
1.2.0.1
-
None
-
None
I am starting a JVM with the byteman agent - specifically, I am installing more than one rule script from the command line. For example, notice the two script: arguments:
-javaagent:/lib/byteman.jar=listener:true,script:/byteman/One.txt,script:/byteman/Two.txt"
Each rule file has 2 rule definitions.
When I use the submit client command line utility to list all rules, the output tells me all 4 rules are from One.txt (the first script: argument). For some reason, when the rules were installed, the two rules from Two.txt got associated with One.txt.
I did a quick peek with a debugger and org.jboss.byteman.agent.Retransformer.listScripts(PrintWriter) is iterating the rules but is still outputting the wrong script name. I don't know where the bug is originating, but its not in the client (Submit) code.