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

Type checker fails to allow boxed primitive types to be employed where a super type is expected

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 1.3.0
    • 1.2.2.1
    • Parser/Type Checker
    • None

      The type checker will allow a value of primitive type to be used where the corresponding boxed type is expected e.g. an int can be passed to a helper method which expects an Integer. However, it incorrectly throws a type error when the expected type is a super type of the boxed type such as Numeric or Object. The error occurs in method Type.isAssignableFrom(Type).

            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: