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.
Summary: | IDE does not offer overriding of default methods of the implemented interface | ||
---|---|---|---|
Product: | java | Reporter: | rudyment <rudyment> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 7.4 | ||
Hardware: | PC | ||
OS: | Windows 7 | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
rudyment
2013-03-03 12:41:53 UTC
I'm not sure if I understand the description correctly, but if the methods are abstract (e.g. they are defined in interface) then you have to select 'Implement method' to get the default implementation (In reply to comment #1) > I'm not sure if I understand the description correctly, but if the methods are > abstract (e.g. they are defined in interface) then you have to select > 'Implement method' to get the default implementation In Java 8 the interfaces can suggest defalut implementation of declared methods - e.g.: interface Interface { default void method() { //here is the default implementation } } The implementing classes can override these default implementation and therefore NetBeans should suggest this posibility. Thanks for explanation Integrated into 'main-golden', will be available in build *201303232300* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/89f8ad0a1cb9 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #226941: IDE does not offer overriding of default methods of the implemented interface - fixed. |