Community
Participate
Working Groups
Build 20030227 I ran some JUnit test, which had legitimate errors, and the status bar of my perspective mentionned these errors. Since then I fixed the tests, and ran them successfully. Then I closed the JUnit views (both in Java and debug perspective), and the status bar displayed again the original JUnit test failures !?! See attached screenshot.
Created attachment 3827 [details] Status bar shouldn't show JUnit failures
This is a consequence of the JUnit view to steal the status line of the active part to show its progress message. This is not clean and can result in problem you are seeing. The alternative is to be clean, but in this case the user will not see any progress messages unless the JUnit view is active.
looks like fix for bug 14426 exposed this bug (now you see the thing in red so it's much more prominent)
could not reproduce bug in Version 2.1.0 Build id: 20030429156
The problem is still there. The issue is that there is no notion of a global status line in Eclipse. The status line belongs to a part and the JUnit plugin is writing into the status line of the currently active part. Often this isn't noticable since the part will update the status line as an item is selected (i.e., in the package explorer). However, if a part never updates the status line, then the JUnit message will stick around. A possible solution is to track the owner of the status line JUnit is writing into and to restore the old status line. However, the challenge is still when the restore should be done. Leaving the bug open.
got fixed some time ago by no longer stealing the status line from other parts