Groovy
  1. Groovy
  2. GROOVY-4936

package protected method in Parent class cannot be called

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.8.1, 1.7.11
    • Component/s: None
    • Labels:
      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.

      1. 4936.patch
        3 kB
        Jochen Theodorou

        Activity

        Jochen Theodorou created issue -
        Jochen Theodorou made changes -
        Field Original Value New Value
        Attachment 4936.patch [ 56076 ]
        Jochen Theodorou made changes -
        Resolution Fixed [ 1 ]
        Fix Version/s 1.8.1 [ 17223 ]
        Assignee Jochen Theodorou [ blackdrag ]
        Fix Version/s 1.7.11 [ 17244 ]
        Status Open [ 1 ] Closed [ 6 ]
        Mark Thomas made changes -
        Project Import Sun Apr 05 13:32:57 UTC 2015 [ 1428240777691 ]
        Mark Thomas made changes -
        Workflow jira [ 12733862 ] Default workflow, editable Closed status [ 12745428 ]
        Mark Thomas made changes -
        Project Import Mon Apr 06 02:11:23 UTC 2015 [ 1428286283443 ]
        Mark Thomas made changes -
        Workflow jira [ 12971146 ] Default workflow, editable Closed status [ 12978922 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development