Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-2503 MOP 2.0 design inflluencing issues
  3. GROOVY-5855

Calling "get" method works but accessing property doesn't on GString

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 1.8.7, 2.0.5
    • None
    • None
    • None

    Description

      def s = 'abc'
      "$s".getBytes() works as expected, but "$s".bytes throws a MissingPropertyException. Both work properly on regular strings.

      Attachments

        Activity

          People

            blackdrag Jochen Theodorou
            kousen Ken Kousen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: