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 169358

Summary: Code completion for "super(…)" is broken
Product: java Reporter: matthies <matthies>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED FIXED    
Severity: blocker Keywords: REGRESSION
Priority: P1    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:

Description matthies 2009-07-28 16:32:02 UTC
This is a regression in 6.7.1, it worked correctly in 6.7.
Example:

    class Test extends Thread
    {
        Test()
        {
            super
        }
    }

Invoking CC behind "super" and selecting "super(String name)" for example results in:

    class Test extends Thread
    {
        Test()
        {
            super()
        (null)}

The expected result (and as it was in 6.7) of course is:

    class Test extends Thread
    {
        Test()
        {
            super(null)
        }
    }
Comment 1 matthies 2009-07-28 19:52:58 UTC
PS: Code completion for "this(...)" is broken in the same way.
Comment 2 Dusan Balek 2009-07-29 08:18:29 UTC
I will look at it...
Comment 3 Dusan Balek 2009-07-29 10:44:09 UTC
Fixed in jet-main.

http://hg.netbeans.org/jet-main/rev/94c3ef107426
Comment 4 Dusan Balek 2009-07-29 12:04:39 UTC
*** Issue 169111 has been marked as a duplicate of this issue. ***
Comment 5 Quality Engineering 2009-07-30 05:47:49 UTC
Integrated into 'main-golden', will be available in build *200907300201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/94c3ef107426
User: Dusan Balek <dbalek@netbeans.org>
Log: Issue #169358: Code completion for "super(?)" is broken - fixed.