Community
Participate
Working Groups
Build 20021008 1. Create new workspace with JUnit 2. In Package Explorer disable all empty package filters ==> you see empty package fragment 'junit' 3. Try to delete the fragment. ==> ok: does not work - fragment stays 3. Rename the fragment ==> BAD: element delta reports removal of 'junit'. 'junit' goes away. 4. Close Package Explorer 5. Reopen Package Explorer ==> BAD: 'junit' still not there 6. Close project and reopen project (or restart the workbench) ==> empty inner package 'junit' is back again An empty inner package should never be reported as removed in a Java element delta nor should it be removed from the model or its cache.
Fixed CopyResourceElementsOperation.prepareDeltas() to create an added delta (instead of a move delta) in this case. Added regression test JavaElementDeltaTests.testRenameOuterPkgFragment()
Verified.