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 - Proposed "Create method" creates duplicate constructor instead of a superclass constructor
Summary: Proposed "Create method" creates duplicate constructor instead of a superclas...
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 8.2
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-08-03 07:40 UTC by terje7601
Modified: 2016-08-03 07:40 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 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)