Community
Participate
Working Groups
Build id: I20060103-0800 This bug may be related to bug 122650. Have a class file in a jar without source attachment with a generic method, for example: ------------------ package gTest; public class Test4 { <E> void foo(E e) { } } ------------------ Now invoke search on "foo" and limit the search to declarations. In the resulting search view, note the icon of the method. A double click on the method produces five Internal Errors like the following: Java Model Exception: Java Model Status [foo(java.lang.Object) {key=LgTest/Test4;.foo<E:Ljava/lang/Object;>(TE;)V} [in Test4 [in Test4.class [in gTest [in theTest.jar [in Indir]]]]] does not exist] at org.eclipse.jdt.internal.core.JavaElement.newNotPresentException(JavaElement.java:478) at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:509) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:242) at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:228) at org.eclipse.jdt.internal.core.BinaryMethod.getFlags(BinaryMethod.java:96) at org.eclipse.jdt.internal.corext.util.JdtFlags.isEnum(JdtFlags.java:167) at org.eclipse.jdt.internal.corext.refactoring.RefactoringAvailabilityTester.isMoveStaticAvailable(RefactoringAvailabilityTester.java:581) at org.eclipse.jdt.internal.corext.refactoring.RefactoringAvailabilityTester.isMoveStaticAvailable(RefactoringAvailabilityTester.java:603) at org.eclipse.jdt.internal.corext.refactoring.RefactoringAvailabilityTester.isMoveStaticMembersAvailable(RefactoringAvailabilityTester.java:621) at org.eclipse.jdt.internal.ui.refactoring.actions.MoveStaticMembersAction.selectionChanged(MoveStaticMembersAction.java:65) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchSelectionChanged(SelectionDispatchAction.java:255) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.selectionChanged(SelectionDispatchAction.java:250) at org.eclipse.jdt.ui.actions.MoveAction.selectionChanged(MoveAction.java:109) at org.eclipse.ui.part.PageBookView$3.run(PageBookView.java:256) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:785) at org.eclipse.ui.part.PageBookView$SelectionProvider.selectionChanged(PageBookView.java:254) at org.eclipse.ui.part.PageBookView.pageSelectionChanged(PageBookView.java:744) at org.eclipse.ui.part.PageBookView.access$2(PageBookView.java:739) at org.eclipse.ui.part.PageBookView$2.selectionChanged(PageBookView.java:154) at org.eclipse.search.ui.text.AbstractTextSearchViewPage$SelectionProviderAdapter.selectionChanged(AbstractTextSearchViewPage.java:176) at org.eclipse.jface.viewers.Viewer$2.run(Viewer.java:162) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:785) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148) at org.eclipse.jface.viewers.Viewer.fireSelectionChanged(Viewer.java:160) at org.eclipse.jface.viewers.StructuredViewer.updateSelection(StructuredViewer.java:1880) at org.eclipse.jface.viewers.StructuredViewer.handleSelect(StructuredViewer.java:1066) at org.eclipse.jface.viewers.StructuredViewer$4.widgetSelected(StructuredViewer.java:1092) at org.eclipse.jface.util.OpenStrategy.fireSelectionEvent(OpenStrategy.java:210) at org.eclipse.jface.util.OpenStrategy.access$3(OpenStrategy.java:205) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:365) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:914) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3285) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2905) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1764) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1728) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:398) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143) at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:379) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338) at org.eclipse.core.launcher.Main.basicRun(Main.java:282) at org.eclipse.core.launcher.Main.run(Main.java:977) at org.eclipse.core.launcher.Main.main(Main.java:952)
I cannot reproduce this bug in 3.4. Looking at ClassFileMatchLocator history, I guess it should be a duplicate of bug 140156... *** This bug has been marked as a duplicate of bug 140156 ***
Verified for 3.4M5 using build I20080204-0010.