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

Groovy should complain when you provide method bodies in an interface

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-RC-1
    • 1.0
    • None
    • None

    Description

      According to javap -c, the following code:

      interface bug14 {
      def Ricky()

      { println "Two Smokes, Let's Go" }

      }

      Produces a valid interface, but the method body is silently ignored. It should cause a compile time error.

      Attachments

        Activity

          People

            Unassigned Unassigned
            mcspanky Martin C. Martin
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: