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

field on primitive not recognized even if existing in wrapper type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.2.1, 2.4.0-rc-1
    • 2.4.1
    • Static Type Checker
    • 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

              melix Cédric Champeau
              blackdrag Jochen Theodorou
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: