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 258804 - Don't generate default methods in interfaces
Summary: Don't generate default methods in interfaces
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 8.0.1
Hardware: PC Linux
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on: 258981
Blocks:
  Show dependency tree
 
Reported: 2016-04-13 09:57 UTC by Jaroslav Tulach
Modified: 2016-05-25 07:38 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample project. Open class DataModel and uncomment line 10 (7.39 KB, application/zip)
2016-04-13 09:57 UTC, Jaroslav Tulach
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Tulach 2016-04-13 09:57:17 UTC
Created attachment 159248 [details]
Sample project. Open class DataModel and uncomment line 10

If there is an interface with default methods and one tries to use code completion to implement it:

$("#b").click(new Function.A1

the generated anonymous inner class has all methods, not just the default one.
Comment 1 Svata Dedic 2016-05-16 07:37:29 UTC
Should be fixed by http://hg.netbeans.org/jet-main/rev/48788f14f954
Comment 2 Jaroslav Tulach 2016-05-25 07:38:14 UTC
Works like a charm. Thanks.