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

Groovy doesn't correctly check for weaker access privileges when using inheritance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.7.6, 1.8-beta-3
    • 1.7.7, 1.8-beta-4
    • None
    • None

    Description

      The example below is rejected by Java but currently accepted by groovy:

      abstract class Super {
          abstract myMethod()
      }
      class Child extends Super {
          protected myMethod() { true }
      }
      new Child()
      

      Attachments

        Activity

          People

            paulk Paul King
            paulk Paul King
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: