Bug 102000 - [quick fix] 'Add constructor' does not include parameter name in linked mode
Summary: [quick fix] 'Add constructor' does not include parameter name in linked mode
Status: RESOLVED DUPLICATE of bug 69462
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows XP
: P3 minor (vote)
Target Milestone: ---   Edit
Assignee: Martin Aeschlimann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-28 07:39 EDT by Markus Keller CLA
Modified: 2005-06-29 04:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Keller CLA 2005-06-28 07:39:24 EDT
I20050627-1435

class A {
	A(int arg) {}
}

class B extends A {
	
}

The quick fix 'Add constructor B(int)' enters linked mode, but does not link the
reference to the parameter name 'arg' in 'super(arg);'.
Comment 1 Martin Aeschlimann CLA 2005-06-28 09:04:42 EDT
having both classes in the same cu is rare.
Comment 2 Markus Keller CLA 2005-06-28 12:13:26 EDT
> having both classes in the same cu is rare.

Not relevant to reproduce. I'm not talking about the 'arg' in A's constructor
(that one should never be linked to the parameter name in B's constructor).

B's new constructor is this:

    B(int arg) {
        super(arg);
        // TODO Auto-generated constructor stub
    }

The 'arg' in 'B(int arg)' has a box around it, but the 'arg' in 'super(arg);'
doesn't. As soon as I start changing the name of the newly generated parameter,
I introduce a compile error.
Comment 3 Martin Aeschlimann CLA 2005-06-29 04:00:30 EDT
ok, now I see. The problem here is that 'super(arg)' is part of the code template

*** This bug has been marked as a duplicate of 69462 ***