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

StringLiteral typecheck is not allowing for the fact that a String is assignable to various interfaces

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.5.2
    • 1.5.1
    • Parser/Type Checker
    • None

      StringLiteral is excluding typechecking against anything other than Object, String or Void. However, String implements several interfaces and StringLiteral can be type-checked aginst these interfaces when it appears as a call to method argument e.g. $1.contains("foo") will try to use CharSequence to type check the String "foo".

      The typecheck method should use an isAssignableFrom test rather than explicitly testing against just these specific types.

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

                Created:
                Updated:
                Resolved: