Thodoris Sotiropoulos created GROOVY-11392:
----------------------------------------------
Summary: the field of an interface cannot be protected
Key: GROOVY-11392
URL: https://issues.apache.org/jira/browse/GROOVY-11392
Project: Groovy
Issue Type: Bug
Components: Static Type Checker
Reporter: Thodoris Sotiropoulos
I have the following code:
{code:java}
interface A {
protected static int x = 1;
}
class B implements A {
}
public class Test {
public static void main(String[] args) {
new B();
}
}{code}
h3. Actual behavior
The code compiles but I receive the following exception:
{code:java}
{code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)