Pavel Curtis <###@###.###>
The compiler sets methods in an interface to public access. It shouldn't.
Steps to reproduce
Compile and the attached code.
interface InterfaceTest
{
void bar();
}
class Baz implements InterfaceTest
{
void bar() {}
}
The compiler sets methods in an interface to public access. It shouldn't.
Steps to reproduce
Compile and the attached code.
interface InterfaceTest
{
void bar();
}
class Baz implements InterfaceTest
{
void bar() {}
}
- relates to
-
JDK-1228542 private access modifier apparently ignored in interfaces
- Closed