Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2549

Expression with "as int" fails (regression)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5.2
    • 1.5.2
    • None
    • None

    Description

      Expressions that contain an "as int" where the type is some built-in type (as opposed to a named class) fail.

      For example, whereas "1 + (2 as int)" used to work, in the 1_5_X branch it nows throws:

      No signature of method: java.lang.Integer.plus() is applicable for argument types: (java.lang.Integer) values:

      {2}

      Attachments

        1. Groovy2549Bug.groovy
          0.3 kB
          James P. White

        Activity

          People

            ait Alex Tkachman
            jimwhite James P. White
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: