Community
Participate
Eclipse IDE
3.1.1 maintenance build from Sept 1, 05 - have a type "public class Foo" - open Foo using open type -> persisted in the open type history - change visibility of Foo to package private - open type -> note that the public type is still available from the history -> note that also the package private version can be opened via open type -> both types then show up side by side in open type Expected: the public version gets pruned when the visibility changes.
also in HEAD of 20050906
Is already the case in 3.1. The problem is that equals considers modifiers which is bogus.
A patch to fix the problem. This patch avoid doubling the items however it will not fix the problem that the visibility isn't updated for history elements. Workaround is to remove the element from the history by pressing the delete key.
Created attachment 26858 [details] The actual patch
Markus, Tom can you please vote on the patch. I would like to fix this for 3.1.1
Fix is trivial. It is impossible for two types to exist that merely differ in visibility (or other modifiers) but are otherwise the same. Ok from my side.
Fix is good. The visibility update problem is bug 102645.
Fixed for 3.1.1. Tom, can you please verify the fix in the next M-Build.
verified fixed in M20050923-1430