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

groovyc doesn't check that inherited abstract methods are implemented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-4
    • 1.0-beta-6
    • None
    • Sun JDK 1.4.2

    Description

      groovyc will successfully compile a class that doesn't implement all of it's abstract inherited methods. For example

      public interface Iface {
      String getName();
      }

      class Impl implements Iface {
      }

      These will both compile fine, but then this test case will fail throwing a groovy.lang.MissingMethodException

      class ImplTest extends GroovyTestCase {
      void testBasic()

      { Iface i = new Impl() assert i.getName() != null }

      }

      Attachments

        1. better-groovy-abstract.patch
          20 kB
          Mark C Chu-Carroll
        2. groovy-abstract.patch
          18 kB
          Mark C Chu-Carroll
        3. groovy-abstract.patch
          8 kB
          Mark C Chu-Carroll

        Activity

          People

            markcc Mark C Chu-Carroll
            jimdowning Jim Downing
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: