Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 295370

Summary: redundant warning badge on package with subpackage
Product: [Eclipse Project] JDT Reporter: Ray Kiddy <ray>
Component: UIAssignee: JDT-UI-Inbox <jdt-ui-inbox>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r
Version: 3.6   
Target Milestone: ---   
Hardware: Macintosh   
OS: Mac OS X - Carbon (unsup.)   
Whiteboard:

Description Ray Kiddy CLA 2009-11-17 12:28:17 EST
User-Agent:       Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.5) Gecko/20091102 Firefox/3.5.5
Build Identifier: 20090920-1017


package a.b;

I created a class. It is in the package "a.b". There is a warning on an ivar in the class. I created the project, added the "a" package with New->Package... and added the "a.b" package with New->Package.... Then I added the foo class.

package a.b;
public class foo {
  void doFoo() {
    Object something = "a thing";
  }
}
The <!> badge shows up on the "a.b" package in the UI. This is good. But the <!> badge also shows up on the "a" package. This is bad. I am also seeing the "a.b" package as a peer of the "a" package in the tree and not as a subpackage.

If the "a.b" package was being hidden somehow (such as under an unopened disclosure triangle), then the super-package would need the <!> badge. As it is, I see both packages in the 'Package Explorer' pane.

There is only one warning in the package and there should only be one <!> badge on the project.


Reproducible: Always

Steps to Reproduce:
Follow directions in description. See project directory (http://www.wykiwyk.org/eclipse/TestPackageableWarnings.tgz) and screen shot (http://www.wykiwyk.org/eclipse/TestPackageableWarnings.png)
Comment 1 Markus Keller CLA 2009-11-17 13:31:38 EST

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