Community
Participate
Working Groups
I got an error during build (build was triggered by save - autobuild). I try to provied a test class where it happens. Other build well. My guess is: problem with duplicate classes in same (default?) package. Ok, here is a test case. It could probably be made smaller but I hope it is good enough to fix the bug. 1. Turn autobuild off 2. Create a project which does not use source folders (i.e. proj =src = bin) 3. Create HelloWorld.java with: ----------------------------- public class HelloWorld { /** * @deprecated Don't use the method */ void a() { } void b() { a(); } } class HelloWorld2 { void b() { HelloWorld x= new HelloWorld(); x.a(); } } ----------------------------- 4. Build ==> OK 5. Add Outer.java: ---------------------------- public class Outer { } class HelloWorld2 { void b() { HelloWorld x= new HelloWorld(); x.a(); } } ---------------------------- 6. Build Error should appear. If not, then rebuild the project, add a space to Outer.java and build. Note that the errror never happens when using rebuild. Here is the log: Log: Fri Sep 14 09:22:17 GMT+02:00 2001 2 org.eclipse.core.resources 2 Problems occurred when invoking code from plug-in: org.eclipse.core.resources. org.eclipse.jdt.internal.core.Assert$AssertionFailedException: Assertion failed; . at org.eclipse.jdt.internal.core.Assert.isTrue(Assert.java(Compiled Code)) at org.eclipse.jdt.internal.core.Assert.isTrue(Assert.java:69) at org.eclipse.jdt.internal.core.builder.impl.UnmodifiedBuilderType.computeIndictments(UnmodifiedBuilderType.java:28) at org.eclipse.jdt.internal.core.builder.impl.IncrementalImageBuilder.updateState(IncrementalImageBuilder.java:1869) at org.eclipse.jdt.internal.core.builder.impl.AbstractImageBuilder.compile(AbstractImageBuilder.java:101) at org.eclipse.jdt.internal.core.builder.impl.IncrementalImageBuilder.applySourceDelta(IncrementalImageBuilder.java:263) at org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.incrementalBuild(JavaBuilder.java:208) at org.eclipse.jdt.internal.core.builder.impl.JavaBuilder.build(JavaBuilder.java:54) at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:93) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:114) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:73) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:41) at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:140) at org.eclipse.core.internal.runtime.InternalPlatform.run(InternalPlatform.java(Compiled Code)) at org.eclipse.core.runtime.Platform.run(Platform.java(Compiled Code)) at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:154) at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:174) at org.eclipse.core.internal.resources.Workspace.endOperation(Workspace.java:663) at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1202) at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:78) at org.eclipse.ui.texteditor.AbstractTextEditor.performSaveOperation(AbstractTextEditor.java:1299) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.performSaveOperation(CompilationUnitEditor.java:209) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.doSave(CompilationUnitEditor.java:257) at org.eclipse.ui.internal.EditorManager$9.run(EditorManager.java:712) at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:249) at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:335) at org.eclipse.ui.internal.EditorManager.runProgressMonitorOperation(EditorManager.java:570) at org.eclipse.ui.internal.EditorManager.saveEditor(EditorManager.java:717) at org.eclipse.ui.internal.WorkbenchPage.saveEditor(WorkbenchPage.java:1225) at org.eclipse.ui.internal.SaveAction.run(SaveAction.java:31) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionContributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionItem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(ActionContributionItem.java:47) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java(Compiled Code)) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java(Compiled Code)) at org.eclipse.ui.internal.Workbench.run(Workbench.java:658) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.java:815) 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:433) at org.eclipse.core.launcher.UIMain.main(UIMain.java:52) NOTES:
PRODUCT VERSION: 0.135 + STABLE from 2.0
*** This bug has been marked as a duplicate of 6799 ***