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 240454 - [introduce method] Introduce method generates private method with body in interface
Summary: [introduce method] Introduce method generates private method with body in int...
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 8.0
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-14 14:56 UTC by Jiri Prox
Modified: 2014-01-23 02:39 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2014-01-14 14:56:11 UTC
Introduce method generates private method with body but without 'default' when called in interface

Steps to reproduce:
1) have a code:
public interface NewInterface {
 
    default void m() {
        System.out.println("");
    }
}

2) select System.out.println(""); and introduce method

->  private void newM() {  // should be public and with default keyword
        System.out.println("");
    }



Product Version: NetBeans IDE Dev (Build 20140109-5dd3d83bf20e)
Java: 1.8.0-ea; Java HotSpot(TM) 64-Bit Server VM 25.0-b49
Runtime: Java(TM) SE Runtime Environment 1.8.0-ea-b107
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)
User directory: C:\Users\jprox\AppData\Roaming\NetBeans\dev
Cache directory: C:\Users\jprox\AppData\Local\NetBeans\Cache\dev
Comment 1 Svata Dedic 2014-01-21 16:55:28 UTC
Fixed in jet-main#d8bea84f5686
Comment 2 Quality Engineering 2014-01-23 02:39:04 UTC
Integrated into 'main-silver', will be available in build *201401230001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/d8bea84f5686
User: Svata Dedic <sdedic@netbeans.org>
Log: #240454: default methods can be introduced into interface