Community
Participate
Working Groups
Build 20011116. In some code I'm reviewing, there is an interface FileTool.IZipFilter (IZipFilter is a member type of the class FileTool). I selected IZipFilter in the packages view and chose References / Workspace. It did not find the following reference, which is in a private method of a class in another package. FileTool.IZipFilter filter = new FileTool.IZipFilter() { public boolean extract(String fullEntryName, String entryName, int depth) { return true; } public boolean unzip(String fullEntryName, String entryName, int depth) { return false; } };
Search should now find references in anonymous inner classes. Moving to Java Core
I created the 2 following compilation units (in packages a and b): // First cu package a; public class FileTool { public interface IZipFilter { public boolean extract(String fullEntryName, String entryName, int depth); public boolean unzip(String fullEntryName, String entryName, int depth); } } // Second cu package b; import a.*; public class Test { private void foo() { FileTool.IZipFilter filter = new FileTool.IZipFilter() { public boolean extract(String fullEntryName, String entryName, int depth) { return true; } public boolean unzip(String fullEntryName, String entryName, int depth) { return false; } }; } } When I select IZipFilter in the package view and search for references in the workspace, I find 2 references. Do you have a test case that shows the problems?
Could not reproduce in build 20011122.
Closing