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

Compiler incorrectly generating bridge methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 1.6.4, 1.6.5
    • 1.6.5, 1.7-beta-2
    • None
    • None

    Description

      In the code below:

      public class GroovyBean {
      @Lazy volatile String foo =

      { ['some','items','in','the','lists'] }

      ()
      }

      The compiler generates get$foo and set$foo methods. Both of these are marked as bridge methods which is incorrect because they are not actually bridge methods at all.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            robharrop Rob Harrop
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: