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.

0

Please sign in to leave a comment.