-
Bug
-
Resolution: Done
-
Major
-
3.0.10
-
None
-
- unzip bytemanReproducer.zip
- optionally recompile example class: javac org/my/AppMain.java
- ./runReproducer.sh (set BYTEMAN_HOME to point to a byteman 3.0.10 install dir)
Probably I'm missing something very basilar here, I've also checked documentation and jira issues with no luck.
It seems that the handling of escape char "\" in rules is different form what one would expect; running the reproducer attached (see steps to reproduce) I'd expected this output:
$ ./runReproducer.sh 1) A STRING 2) A BACKSLASH WITH traceln: \ 3) A BACKSLASH WITH sysout: \ 4) A STRING2 WITH REPLACE 5) A DOUBLE BACKSLASH WITH traceln replaced: \\ 6) A DOUBLE BACKSLASH WITH sysout replaced: \\ 7) A DOUBLE quotes: " 8) WIERD 2 BACKSLASHES PRINTED:======================\============== Ciao!
got this instead:
$ ./runReproducer.sh 1) A STRING 4) A STRING2 WITH REPLACE 7) A DOUBLE quotes: " 8) WIERD 2 BACKSLASHES PRINTED:======================\\============== Ciao!