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 - Code completion for "super(…)" is broken
Summary: Code completion for "super(…)" is broken
Status: RESOLVED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: Dusan Balek
URL:
Keywords: REGRESSION
: 169111 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-28 16:32 UTC by matthies
Modified: 2009-07-30 05:47 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 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.