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

package protected method in Parent class cannot be called

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.8.1, 1.7.11
    • None
    • None

    Description

      assuming we have

      public class Parent{ 
        int someMethod(){return 1;}
      }

      written in Java and

      public class Child extends Parent{
        int someMethod(){
          return super.someMethod()+2
        }
      }

      written in Groovy, then this results in a StackOverflow.

      Attachments

        1. 4936.patch
          3 kB
          Jochen Theodorou

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: