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

Two interfaces with the same method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • 1.5.5
    • None
    • None

    Description

      The code generates an error message

      interface B {
      def x()
      }

      interface C {
      def x()
      }

      class A implements B, C{

      def x()

      { return 33 }

      }

      The error:

      Exception thrown: java.lang.InstantiationException: B

      java.lang.InstantiationException: B

      But it is a possible situation in java.

      Attachments

        Issue Links

          Activity

            People

              blackdrag Jochen Theodorou
              ccadete ccadete
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: