You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (JIRA)" <ji...@apache.org> on 2018/03/19 15:17:00 UTC

[jira] [Commented] (GROOVY-8509) SC: error for call to protected method from same package

    [ https://issues.apache.org/jira/browse/GROOVY-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16404957#comment-16404957 ] 

Eric Milles commented on GROOVY-8509:
-------------------------------------

The error is recorded from {{StaticInvocationWriter}}.  There has been a lot of change to {{writeDirectMethodCall}} since Groovy 2.4:
End of StaticInvocationWriter.writeDirectMethodCall in 2.4 branch: https://github.com/apache/groovy/blob/GROOVY_2_4_X/src/main/org/codehaus/groovy/classgen/asm/sc/StaticInvocationWriter.java#L312

End of the same method in Groovy 2.5: https://github.com/apache/groovy/blob/GROOVY_2_5_X/src/main/java/org/codehaus/groovy/classgen/asm/sc/StaticInvocationWriter.java#L336

> SC: error for call to protected method from same package
> --------------------------------------------------------
>
>                 Key: GROOVY-8509
>                 URL: https://issues.apache.org/jira/browse/GROOVY-8509
>             Project: Groovy
>          Issue Type: Bug
>    Affects Versions: 2.5.0-beta-2, 2.6.0-alpha-3
>            Reporter: Eric Milles
>            Priority: Major
>
> Groovy 2.5+ is producing compilation errors for @CompileStatic test class calling a protected method of class under test (in same package).  This should be allowed as protected is "package-private" plus subtypes.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)