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

Summary: Viewing packages as (reduced) tree causes refactoring malfunction
Product: java Reporter: stwr
Component: RefactoringAssignee: Ralph Ruijs <ralphbenjamin>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: P3    
Version: 8.1   
Hardware: PC   
OS: Windows 7   
Issue Type: DEFECT Exception Reporter:
Attachments: This is the situation after undo.

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 ***