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 86954 - Hint for missing constructor
Summary: Hint for missing constructor
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Hints (show other bugs)
Version: 5.x
Hardware: All All
: P2 blocker (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-11 17:57 UTC by Martin Schovanek
Modified: 2015-10-02 14:24 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Schovanek 2006-10-11 17:57:10 UTC
Have two classes:

public class A {
    public A(int x) {
    }
    public A(int x, int y) {
    }
}

public class B extends A {
}

At the class B declaration I get error following error withou a hint:
cannot find symbol, symbol  : constructor A()

Would be nice to have a hint which will add following code into class B:
    public B(int x) {
       super(x);
    }
    public B(int x, int y) {
       super(x, y);
    }
Comment 1 Svata Dedic 2015-10-02 14:24:05 UTC
Implemented by add constructor code generator