danielsun1106 commented on issue #1038: GROOVY-9282: Allow protected override 
of package scoped methods
URL: https://github.com/apache/groovy/pull/1038#issuecomment-544250457
 
 
   It's OK to add more check in the current class. FYI, here is the rule Java 
obeys, groovy should obey too:
   
   If a method is declared with default access (that is, not private, 
protected, nor public), it can only be overridden by methods in the same 
package. If a method of the same signature is defined in a subclass in a 
different package, it is a completely separate method and no overriding occurs.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to