Groovy base classes and access rights
Example:
public class foo
{
def closure1 =
{
}
}
public class bar extends foo
{
def closure2 =
{
closure1()
}
}
The call to closure1() in class bar will be highlighted in yellow in IntelliJ claiming that access to closure1 exceeds it's access rights. Which is not currect because closures are public by default in Groovy.
请先登录再写评论。
http://www.jetbrains.net/jira/browse/GRVY-2130
Thank you for reporting this!