Uploaded image for project: 'Byteman'
  1. Byteman
  2. BYTEMAN-94

Provide -p flag to bytemancheck script allowing packages for rule classes to be specified

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0
    • 1.2.2.1
    • None
    • None

      The bytemancheck script fails to typecheck scripts with non-package qualified target CLASS specifications because it does not know how to find the relevant class. However, this does not stop the rule from being valid. For example,

      RULE foo
      CLASS String
      METHOD append(String)
      . . .

      is a valid rule and will be used to transform class java.lang.String . bytemancheck script will fail to typecheck it because it does not know whihc package to lookup the class in.

      byetmancheck shoudldbe modified to take one of more argument pairs of the form -p <package> so that unqualified CLASS specifiers can be resolved to an actual class. The new syntax is

      bytemancheck [-cp <classpath>] [-p <package>]* [-v] script1 ... scriptN

      for example if the rule above was in file script.txt then the command line would be

      bytemancheck -p java.lang script.txt

            rhn-engineering-adinn Andrew Dinn
            rhn-engineering-adinn Andrew Dinn
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: