mbien commented on code in PR #8265:
URL: https://github.com/apache/netbeans/pull/8265#discussion_r1992473293
##########
platform/openide.io/src/org/openide/windows/OutputListener.java:
##########
@@ -28,15 +28,15 @@ public interface OutputListener extends
java.util.EventListener {
/** Called when a line is selected.
* @param ev the event describing the line
*/
- public void outputLineSelected (OutputEvent ev);
+ public default void outputLineSelected(OutputEvent ev) {}
Review Comment:
this could indeed happen. I believe the endorsed way to resolve the conflict
would be to implement the method again and explicitly select one of the two
implementations.
e.g:
```java
public class Dummy {
public interface I1 {
public default void dummy() {
System.out.println("1");
}
}
public interface I2 {
public default void dummy() {
System.out.println("2");
}
}
public interface I12 extends I1, I2 {
@Override
public default void dummy() {
I1.super.dummy();
}
}
}
```
This should compile and If something implements `Dummy.I12` and calls
`dummy()` it should print `1`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists