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

Groovy interfaces allow methods with full body?

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.7.2, 1.8-beta-1
    • None
    • None

    Description

      The compilation of the following code goes through

      interface ITest {
          def foo(a, b) {
              return a + b
          }
      }
      

      The bytecode of the interface, however, has the correct abstract method

      public abstract Object foo(Object paramObject1, Object paramObject2);
      

      It should not allow the full methods only to reject their bodies later.

      Attachments

        Activity

          People

            roshandawrani Roshan Dawrani
            roshandawrani Roshan Dawrani
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: