Community
Participate
Working Groups
Eclipse 20031211. 1) import a binary plugin with source (I used org.eclipse.ui.workbench). 2) In the following initializer in ActionFactory.class: public static final ActionFactory SHOW_VIEW_MENU = new ActionFactory("showViewMenu") { //$NON-NLS-1$ /* (non-javadoc) method declared on ActionFactory */ public IWorkbenchAction create(IWorkbenchWindow window) { if (window == null) { throw new IllegalArgumentException(); } IWorkbenchAction action = new ShowViewMenuAction(window); action.setId(getId()); return action; } }; select action in "action.setID...". 3) search for declarations in workspace (you'll have to get HEAD of jdt.ui for this to be available). 4) you get an error: Caused by: java.lang.IllegalArgumentException: Class file name must end with .class. at java.lang.Throwable.<init>(Throwable.java) at java.lang.Throwable.<init>(Throwable.java) at org.eclipse.jdt.internal.core.PackageFragment.getClassFile(PackageFragment.java) at org.eclipse.jdt.internal.core.util.HandleFactory.createOpenable(HandleFactory.java:145) at org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches(MatchLocator.java:712) at org.eclipse.jdt.internal.core.search.JavaSearchParticipant.locateMatches(JavaSearchParticipant.java:155) at org.eclipse.jdt.internal.core.search.pattern.InternalSearchPattern.findMatches(InternalSearchPattern.java) at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:729) at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:697) at org.eclipse.jdt.core.search.SearchEngine.search(SearchEngine.java:678) at org.eclipse.jdt.internal.ui.search.JavaSearchOperation.execute(JavaSearchOperation.java:97) at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:91) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:105) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:101)
Fixed LocalVariablePattern.findIndexMatches(...) to compute an index like document path (i.e. the path to the jar followed by the relative path to the .class file in the jar). Added regression test JavaSearchTests.testLocalVariableReference3()
I'm still seeing the same exception in I-build 200312160010. Did the fix make it into the I-build?
No. It will be in I200312160800. Please see the JDT Core build notes to see if a bug is fixed in a given build.
Verified in I200312161200