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

field on primitive not recognized even if existing in wrapper type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1, 2.4.0-rc-1
    • Fix Version/s: 2.4.1
    • Component/s: Static Type Checker
    • Labels:
      None

      Description

      The most simple case of this is when compiling 1.MAX_VALUE. The compiler recognizes 1 as int, but fails to see that MAX_VALUE is defined on Integer. Other version are

      int i=1; i.MAX_VALUE

      and

      def i="d"; i=1; i.MAX_VALUE

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                melix C├ędric Champeau
                Reporter:
                blackdrag Jochen Theodorou
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: