[
https://issues.apache.org/jira/browse/GROOVY-8509?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16405076#comment-16405076
]
Eric Milles commented on GROOVY-8509:
-------------------------------------
Also, I'm curious about 2 additional items:
- Why does a call to a package-private member not result in the same SC error
when accessed outside of the declared package?
- Why does {{@TypeChecked}} not support these warnings? Are calls to private,
package-private and protected methods supported for {{@TypeChecked}} code?
> 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)