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 254573 - Viewing packages as (reduced) tree causes refactoring malfunction
Summary: Viewing packages as (reduced) tree causes refactoring malfunction
Status: RESOLVED DUPLICATE of bug 215264
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 8.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Ralph Ruijs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-08-21 06:06 UTC by stwr
Modified: 2015-08-21 08:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
This is the situation after undo. (70.17 KB, image/png)
2015-08-21 06:06 UTC, stwr
Details

Note You need to log in before you can comment on or make changes to this bug.
Description stwr 2015-08-21 06:06:13 UTC
Created attachment 155511 [details]
This is the situation after undo.

Product Version: NetBeans IDE Dev (Build 201508200002)
Java: 1.8.0_60-ea; Java HotSpot(TM) 64-Bit Server VM 25.60-b23
Runtime: Java(TM) SE Runtime Environment 1.8.0_60-ea-b25
System: Windows 7 version 6.1 running on amd64; Cp1250; en_US (nb)

--Use Case--

1. Start the IDE with clear userdir
2. Create sample AnagramGame project
3. Open Project view and from context menu select View Java Packages as: Tree or Reduced Tree
4. Right click on package 'ui' and Refactor|Rename it
5. Once package is renamed hit 'Undo'

--Actual result--
The error message is shown, saying:
'Cannot Undo'
'Following files were modified:'
'[../Anagrams.java]'
'[../About.java]'
The package is correctly renamed back to 'ui'.
However two above files are not updated and contain still bad package statement.
What is more the error badge is not displayed for the file neither for package or project.


The issue is not reproducible when viewing java packages as list.
Comment 1 Ralph Ruijs 2015-08-21 08:56:59 UTC

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