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

Key: IDEADEV-26971
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Alexey Kudravtsev
Reporter: Irina Petrovskaya
Votes: 0
Watchers: 0
Operations

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

Refactor/Rename doesn't work in new projects/packages when multiple projects are open

Created: 30 May 08 13:32   Updated: 30 Jul 08 19:01
Component/s: Refactoring
Fix Version/s: Diana 8637

Original Estimate: Unknown Remaining Estimate: Unknown Time Spent: Unknown
Issue Links:
Duplicate
 
This issue is duplicated by:
IDEADEV-28578 Refactor > Rename breaks Java code Critical Resolved

Build: 8,425
Fixed in build: 7,933


 Description  « Hide
the problem seems to occur in the new projects only, and if there is some different project opened in another frame.
To recreate try the following scenario, for example:
  • open some project;
  • create new project (default settings), open it in the new frame;
  • in new project create 2 classes:
    mytest.Account and mytest.Person;
  • in Person class create the setter method:
    public void setAccount(Account account){}
  • refactor/rename Account class to Account_renamed:
    the setter parameter is changed, but the type is not updated.
    The problem can be recreated for different types of usages certainly. If it doesn't occur on the first refactoring, undo the change and rename the class again.

After Idea restart - n/r. I also cannot recreate the bug with the single project opened.
However, when 2 projects are opened, it is possible to recreate the bug in the new-created package:

-start idea with some project opened;

  • open another project in the new frame;
  • create new package in this project;
  • create 2 classes in this package;
  • etc.


 All   Comments   Work Log   Change History      Sort Order:
Alexander Chernikov - 30 Jul 08 19:01
Since the duplicate is fixed.