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 253862 - [81cat]Undo Refactor->Move updates imports to same package imports
Summary: [81cat]Undo Refactor->Move updates imports to same package imports
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-27 13:46 UTC by manikantannaren
Modified: 2016-08-12 13:58 UTC (History)
1 user (show)

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 manikantannaren 2015-07-27 13:46:12 UTC
Link: http://services.netbeans.org/synergy/client/app/#/case/5114/suite/1796

1. Open usages.ClassA for editing

2. Follow the steps 
    A. Open usages.MyEnum.java
    B. Right click any place in code and from pop-up menu select Refactor > Move...
    c. In occurred dialog select package move and press Preview
    D. Inspect all changes and press Do Refactoring
    E. Ensure that MyEnum had been moved correctly and project is still compilable
    F. Press undo and confirm dialog 

After you press Undo (step 2F), Check ClassA opened in editor

Expected Result
No import for MyEnum

Actual  Result
MyEnum is imported as usages.MyEnum (i.e. import from same package usages)
Comment 1 manikantannaren 2015-07-27 13:48:31 UTC
Happens intermittently. Could reproduce thrice before reporting and now I am unable to. Will update when I encounter it again.
Comment 2 Jiri Prox 2015-09-01 15:24:23 UTC
I cannot reproduce it as well
Comment 3 Svata Dedic 2016-08-12 13:58:49 UTC
A year has passed without additional report; closing.