groovy
  1. groovy
  2. GROOVY-4936

package protected method in Parent class cannot be called

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.1, 1.7.11
    • Component/s: None
    • Labels:
      None
    • Number of attachments :
      1

      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.

      1. 4936.patch
        3 kB
        blackdrag blackdrag

        Activity

        blackdrag blackdrag made changes -
        Field Original Value New Value
        Attachment 4936.patch [ 56076 ]
        blackdrag blackdrag made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Assignee Jochen Theodorou [ blackdrag ]
        Fix Version/s 1.7.11 [ 17244 ]
        Fix Version/s 1.8.1 [ 17223 ]
        Resolution Fixed [ 1 ]

          People

          • Assignee:
            blackdrag blackdrag
            Reporter:
            blackdrag blackdrag
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: