Bug 79239 - Constructor quickfixes don't trigger with method calls
Summary: Constructor quickfixes don't trigger with method calls
Status: RESOLVED DUPLICATE of bug 77388
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.1 M4   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 16:38 EST by Kory Markevich CLA
Modified: 2004-11-24 07:01 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Kory Markevich CLA 2004-11-22 16:38:17 EST
Using the following code with 3.1M3:

public class Test
{
    private static class Inner
    {
    }
    
    private void a( Inner c )
    {
        new Inner( 42 );
        a( new Inner( 42 ) );
    }
}

Both lines in Test.a are highlighted as errors.  Using quickfix on the first
gives the standard Remove Argument and Create Constructor quickfixes, but using
it on the second does not give any.
Comment 1 Martin Aeschlimann CLA 2004-11-23 05:52:58 EST
The problem range of the second error includes the white space after the
constructor invocation (in fact all white spaces if added more).

I can fix that on my side, but I think it would be better to be fixed on the
error range.
Comment 2 Markus Keller CLA 2004-11-23 09:38:33 EST
Maybe related to bug 77388.
Comment 3 Frederic Fusier CLA 2004-11-24 07:01:09 EST
Yes, this is a duplicate.

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