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 267414

Summary: Proposed "Create method" creates duplicate constructor instead of a superclass constructor
Product: java Reporter: terje7601
Component: EditorAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:

Description terje7601 2016-08-03 07:40:30 UTC
To reproduce, use the following classes A & B. On the "super" call in class B, an error appears.

Actual behavior: a proposal to "Create method "(java.lang.String,java.lang.String)" in B". Doing this creates a duplicate constructor in B.

Expected behavior: a proposal to "Create method "(java.lang.String,java.lang.String)" in A". Doing this would create a (String,String) constructor in A.


class A {

    A(Integer a, String b) {
    }

}



class B extends A {

    B(String a, String b) {
        super(a, b);
    }

}



Product Version: NetBeans IDE Dev (Build 201607110002)
Updates: Updates available
Java: 1.8.0_91; Java HotSpot(TM) 64-Bit Server VM 25.91-b15
Runtime: Java(TM) SE Runtime Environment 1.8.0_91-b15
System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb)