gesellix opened a new pull request #1038: Allow protected override of package 
scoped methods
URL: https://github.com/apache/groovy/pull/1038
 
 
   Overriding a method as `protected` with a super method being package-private 
(no modifier in Java or `@PackageScope` in Groovy), compilation fails with an 
error similar to this:
   
   ```
   ...
   exampleMethod(java.lang.Object -> java.lang.Object) in com.example.Child 
cannot override exampleMethod in com.example.Base; attempting to assign weaker 
access privileges; was package-private
   ...
   ```
   
   This edge case seems to be missed at 
[GROOVY-8651](https://issues.apache.org/jira/browse/GROOVY-8651).
   
   Groovy 2.5.7 and 2.5.8 are affected. I didn't check Groovy 3.x.
   
   Signed-off-by: Tobias Gesellchen <[email protected]>

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to