Bug 5532 - Incremental compile missed a return type change
Summary: Incremental compile missed a return type change
Status: RESOLVED DUPLICATE of bug 5275
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC other
: P3 normal (vote)
Target Milestone: 2.0 M1   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-11-05 09:56 EST by Randy Giffen CLA
Modified: 2002-01-11 09:13 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Giffen CLA 2001-11-05 09:56:24 EST
206

Given 
   IPageSite extends IViewSite
   PropertySheetContentOutlinePage extends ContentOutlinePage

I changed the return type of the method getSite in ContentOutlinePage from
IViewSite to IPageSite.

PropertySheetContentOutlinePage (in another project) contais a method which
calls getSite. When I ran the code I got the following error. The error went 
away when I did a manual rebuid of PropertySheetContentOutlinePage's project
 

Log: Mon Nov 05 09:35:27 EST 2001
2 org.eclipse.ui 2 Problems occurred when invoking code from plug-in: 
org.eclipse.ui.
java.lang.NoSuchMethodError: org.eclipse.ui.part.Page: method getSite()
Lorg/eclipse/ui/IViewSite; not found
	at 
org.eclipse.ui.examples.propertysheet.PropertySheetContentOutlinePage.init
(PropertySheetContentOutlinePage.java:56)
	at org.eclipse.ui.part.PageBookView.initPage(PageBookView.java:268)
	at org.eclipse.ui.part.PageBookView.createPage(PageBookView.java:256)
	at org.eclipse.ui.part.PageBookView.partActivated(PageBookView.java:465)
	at org.eclipse.ui.part.PageBookView.showBootstrapPart
(PageBookView.java:565)
	at org.eclipse.ui.part.PageBookView.createPartControl
(PageBookView.java:293)
	at org.eclipse.ui.views.contentoutline.ContentOutline.createPartControl
(ContentOutline.java:90)
	at org.eclipse.ui.internal.PartPane$2.run(PartPane.java:53)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:812)
	at org.eclipse.core.runtime.Platform.run(Platform.java:395)
	at org.eclipse.ui.internal.PartPane.createChildControl(PartPane.java:51)
	at org.eclipse.ui.internal.PartPane.createControl(PartPane.java:93)
	at org.eclipse.ui.internal.ViewPane.createControl(ViewPane.java:107)
	at org.eclipse.ui.internal.PartSashContainer.createControl
(PartSashContainer.java:163)
	at org.eclipse.ui.internal.PerspectivePresentation.activate
(PerspectivePresentation.java:80)
	at org.eclipse.ui.internal.Perspective.onActivate(Perspective.java:500)
	at org.eclipse.ui.internal.WorkbenchPage.onActivate
(WorkbenchPage.java:933)
	at org.eclipse.ui.internal.WorkbenchWindow$5.run
(WorkbenchWindow.java:886)
	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:56)
	at org.eclipse.ui.internal.WorkbenchWindow.setActivePage
(WorkbenchWindow.java:874)
	at org.eclipse.ui.internal.WorkbenchWindow.restoreState
(WorkbenchWindow.java:787)
	at org.eclipse.ui.internal.Workbench.restoreState(Workbench.java:681)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:518)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:812)
	at org.eclipse.core.runtime.Platform.run(Platform.java:395)
	at org.eclipse.ui.internal.Workbench.openPreviousWorkbenchState
(Workbench.java:502)
	at org.eclipse.ui.internal.Workbench.openWindows(Workbench.java:559)
	at org.eclipse.ui.internal.Workbench.init(Workbench.java:412)
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:706)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:820)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:151)
	at org.eclipse.core.launcher.Main.run(Main.java:502)
	at org.eclipse.core.launcher.UIMain.main(UIMain.java:52)
Comment 1 Philipe Mulet CLA 2001-11-05 10:50:57 EST
Another duplicate of the image builder limitation with respect to cross project 
dependencies on class files.

*** This bug has been marked as a duplicate of 5275 ***