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

ClassFormatError if trait (accidentally) "extends" interface

    XMLWordPrintableJSON

Details

    Description

      interface Foo {}
      trait Bar extends Foo {} // oops: should be "implements"
      

      No compile error occurs. Runtime error: "java.lang.ClassFormatError: Interfaces must have java.lang.Object as superclass in class file Bar"

      Attachments

        Activity

          People

            melix Cédric Champeau
            pniederw Peter Niederwieser
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: