History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: IDEADEV-15453
Type: Cosmetics Cosmetics
Status: Open Open
Priority: Normal Normal
Assignee: Alexey Kudravtsev
Reporter: Keith Lea
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
IDEA: Development

"Change signature" intention when calling nonexistent constructor inserts over-qualified type into signature

Created: 03 Mar 07 01:49   Updated: 20 Mar 07 18:07
Component/s: Refactoring
Fix Version/s: None

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown

Build: 6,148
Severity: Medium


 Description  « Hide
class CoolTest {
  class Inner1 {}

  void method() {
    new Inner2(new Inner1());
  }

  class Inner2 {
    Inner2() { }
  }
}

Click in the new Inner call, hit alt enter, choose "Change signature ..." to produce:

class CoolTest {
  class Inner1 {}

  void method() {
    new Inner2(new Inner1());
  }

  class Inner2 {
    Inner2(CoolTest.Inner1 inner1) { }
  }
}

The definition of Inner2 constructor should not use qualified CoolTest.Inner1, but instead just Inner1.



 All   Comments   Work Log   Change History      Sort Order:
There are no comments yet on this issue.