This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 244549 - Add "implement default method" for conflicting interfaces
Summary: Add "implement default method" for conflicting interfaces
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.0
Hardware: PC Linux
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-16 13:14 UTC by aekold
Modified: 2014-05-16 13:40 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description aekold 2014-05-16 13:14:28 UTC
This is related to Java 8 defender methods support.

Consider following code:

public class DefenderMethods {
	interface A {
		default void doSomething() {
		}
	}
	interface B {
		default void doSomething() {
		}
	}
	class C implements A, B {
	}
}


NetBeans shows standard javac error on class C: class inherits unrelated defaults from type A and B.

It would be great to have a action (or hint? not sure about the name) with this error to override the method, similar to one we see when extending abstract class.