Bug 19586 - Java project removed from Projects view
Summary: Java project removed from Projects view
Status: RESOLVED DUPLICATE of bug 18953
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Linux-Motif
: P3 normal (vote)
Target Milestone: 2.0 F3   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 19744 19808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-07 09:38 EDT by James Moody CLA
Modified: 2002-06-11 07:21 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description James Moody CLA 2002-06-07 09:38:48 EDT
I had a Java project checked out from CVS. Java browsing views open. Project
appears in Projects view.

Team->Disconnect, tell it NOT to delete the CVS meta info.
Team->share Project. Finish.
Team->Disconnect, tell it to delete the CVS meta info.

At this point the project disappeared from the Java projects view! It was still
a Java project, and its .project file contained the java builder and nature. In
the navigator, it was properly decorated as a Java project.
Comment 1 Erich Gamma CLA 2002-06-08 17:19:08 EDT
which build? I cannot reproduce the problem in 0607. Problem seems to be 
related to 19058.

I could step through the scenario with an freshly checked out project from 
dev.eclipse.org. However, I could not reproduce when I tried it on some older 
project, that I had checked out from my local CVS NT server.

The first time I get an error: "the .project file is out of sync." When I do 
refresh on the project and try again I get a class cast exception. See below, 
at this point I'm still unable to Share the project. This problem could be a 
follow-up to the first problem. Moving to JDT-Core for comment. 

!MESSAGE Problems occurred when invoking code from plug-
in: "org.eclipse.core.resources".
!STACK 0
java.lang.ClassCastException
	at org.eclipse.jdt.internal.core.DeltaProcessor.elementAdded
(DeltaProcessor.java:593)
	at 
org.eclipse.jdt.internal.core.DeltaProcessor.updateCurrentDeltaAndIndex
(DeltaProcessor.java:1161)
	at org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta
(DeltaProcessor.java:1346)
	at org.eclipse.jdt.internal.core.DeltaProcessor.traverseDelta
(DeltaProcessor.java:1430)
	at org.eclipse.jdt.internal.core.DeltaProcessor.processResourceDelta
(DeltaProcessor.java:1124)
	at org.eclipse.jdt.internal.core.DeltaProcessor.resourceChanged
(DeltaProcessor.java:1305)
	at org.eclipse.core.internal.events.NotificationManager$1.run
(NotificationManager.java:128)
	at org.eclipse.core.internal.runtime.InternalPlatform.run
(InternalPlatform.java:802)
	at org.eclipse.core.runtime.Platform.run(Platform.java:416)
	at org.eclipse.core.internal.events.NotificationManager.notify
(NotificationManager.java:143)
	at org.eclipse.core.internal.events.NotificationManager.broadcastChanges
(NotificationManager.java:67)
	at org.eclipse.core.internal.resources.Workspace.broadcastChanges
(Workspace.java:133)
	at org.eclipse.core.internal.resources.Workspace.endOperation
(Workspace.java:741)
	at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1366)
	at org.eclipse.ui.actions.WorkspaceModifyOperation.run
(WorkspaceModifyOperation.java:78)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
Comment 2 Philipe Mulet CLA 2002-06-09 11:33:50 EDT
The code for creating element doesn't check if element if project when reusing 
it... need to investigate
Comment 3 James Moody CLA 2002-06-09 14:18:22 EDT
*** Bug 19744 has been marked as a duplicate of this bug. ***
Comment 4 Philipe Mulet CLA 2002-06-10 06:27:57 EDT
Cannot reproduce any of these symptoms with latest.
Comment 5 Philipe Mulet CLA 2002-06-10 06:29:52 EDT
Would it happen on linux only ?
Comment 6 Philipe Mulet CLA 2002-06-10 09:33:42 EDT
Ok, it can only be reproduced in scenario where Prj == src == bin.

Duplicate of bug 18953

*** This bug has been marked as a duplicate of 18953 ***
Comment 7 Philipe Mulet CLA 2002-06-11 07:21:10 EDT
*** Bug 19808 has been marked as a duplicate of this bug. ***