You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
A structural interface cannot override a method from an extended interface. Removing the @Structural annotation from the 'child' interface resolves the issue.
@StructuralpublicinterfaceParentIntf {
Objectfoo();
}
@StructuralpublicinterfaceChildIntfextendsParentIntf {
@Override// ERROR: Method does not override method from its superclassdefaultObjectfoo(){
return"test";
}
}
Expected Behavior
The ChildIntf interface should be allowed to override the foo() method from ParentIntf interface without any errors, regardless of the @Structural annotation.
Desktop (please complete the following information):
OS Type & Version: Windows 10 22H2
Java/JDK version: openjdk 23.0.1
IDE version (IntelliJ IDEA or Android Studio): IntelliJ IDEA 2024.3
Describe the bug
A structural interface cannot override a method from an extended interface. Removing the
@Structural
annotation from the 'child' interface resolves the issue.Expected Behavior
The
ChildIntf
interface should be allowed to override the foo() method fromParentIntf
interface without any errors, regardless of the@Structural
annotation.Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: