Bug 32301 2 Packages with similar names have a problem displaying in the Java browsing perspective.
Hello, Thanks for a wonderful IDE with all these rich features. I think we have a small bug in the Java Browsing Perspective. As an example: Please create a package called "test" in your project. Then create a parallel package called "test_a". After refreshing project, test_a will show up as a child of "test" and also as its parallel project. "test_a" is actually a parallel package, and should show up only alongside "test", not under it. Thanks, agam
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/browsing/PackagesViewHierarchicalContentProvider.java
if (!root.isArchive() || !root.isExternal())
										list.add(fragment);
								}
							}
							return combineSamePackagesIntoLogialPackages((IPackageFragment[]) list.toArray(new IPackageFragment[list.size()]));
						}
					case IJavaElement.PACKAGE_FRAGMENT_ROOT :
						{
							IPackageFragmentRoot root= (IPackageFragmentRoot) parentElement;
		
							
							fMapToLogicalPackage.clear();
							fMapToPackageFragments.clear();
							IResource resource= root.getUnderlyingResource();
							IPackageFragment[] fragments= new IPackageFragment[0];
							if (root.isArchive()) {
								IJavaElement[] els= root.getChildren();
								fragments= getTopLevelChildrenByElementName(els);
							} else if (resource != null && resource instanceof IFolder) {
								fragments= getTopLevelChildrenByElementName(root.getChildren());
							}
							addFragmentsToMap(fragments);
							return fragments;
						}
					case IJavaElement.PACKAGE_FRAGMENT :
						{
							IPackageFragment packageFragment= (IPackageFragment) parentElement;
							IPackageFragment[] fragments= new IPackageFragment[0];
							IJavaElement parent= packageFragment.getParent();
							if (parent instanceof IPackageFragmentRoot) {