Community
Participate
Working Groups
Version: 3.2.0 Build id: I20051116-1332 Create a new java project Add an empty package to the project Search -> Java -> Search String: * Search For: Package Limit To: Declarations Search does not find the empty package. Even if you search for the package (search string= package name) the package is not reported. The problem seams to be located in: MatchLocator#locatePackageDeclarations : IPackageFragment pkg = (IPackageFragment) pkgs[k]; IJavaElement[] children= pkg.getChildren(); if (children.length > 0 && ...) { ... report match ... }
Problem rightly came from this condition, thanks for the job :-) Fixed and released in HEAD. Test case added in JavaSearchTests
Verified for 3.2 M4 using build I20051213-0010
*** Bug 140992 has been marked as a duplicate of this bug. ***