Bug 37962 - Unexpected transient problem during reconcile
Summary: Unexpected transient problem during reconcile
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 normal (vote)
Target Milestone: 3.0 M1   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-22 07:06 EDT by Philipe Mulet CLA
Modified: 2003-06-06 11:20 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipe Mulet CLA 2003-05-22 07:06:29 EDT
Build 200305160835

When opening FormattingPreferences.java in editor, its import:
import org.eclipse.jdt.internal.formatter.align.Alignment;

gets flagged as not resolvable, though it compiles ok.

Model environment seems to get inconsistent. Closing/reopening the editor 
doesn't make the problem go away.
Comment 1 Philipe Mulet CLA 2003-05-22 08:15:45 EDT
Problem also occurs on JDTCompilerAdapter.java, last import doesn't resolve 
(*.Messages).
Comment 2 Philipe Mulet CLA 2003-05-22 08:19:06 EDT
Cannot reproduce in runtime workbench.
Comment 3 Philipe Mulet CLA 2003-05-22 08:25:53 EDT
Was able to recreate same problem on different machine, but when 
exiting/restarting Eclipse, problem didn't show up either.
Comment 4 Philipe Mulet CLA 2003-05-22 09:11:29 EDT
Closing/reopening project makes problem go away. Seems a model updating bug.

On both machines, I had smoothly transitionned from v_353 to latest by grabbing 
changes as they were performed.

Offending incremental changes seems to be associated with addition of a package 
fragment. Both scenarii mentionned above where unresolved imports where target 
import just got added since last integration build.
Comment 5 Jerome Lanneluc CLA 2003-05-22 09:27:14 EDT
Was able to reproduce as follows:
1. Replace jdt.core with v_353
2. Exit/restart
3. Open JDTCompilerAdapter.java and close (not sure this is needed)
4. Replace jdt.core with HEAD
5. Open FormattingPreferences.java
Observe: The import org.eclipse.jdt.internal.formatter.align.Alignment cannot 
be resolved.
Comment 6 Jerome Lanneluc CLA 2003-05-22 09:49:28 EDT
Step 3 is not needed.
Comment 7 Jerome Lanneluc CLA 2003-05-22 10:27:10 EDT
S=Actually step 3 is needed. Not sure why I reproduced it without step 3.
Comment 8 Jerome Lanneluc CLA 2003-05-22 11:30:28 EDT
Fixed DeltaProcessor so that it resets the name lookup of the affected project 
(not only its dependents) when a package is added or removed.

Added regression test NameLookupTests2.testAddPackageFragment2().
Comment 9 David Audel CLA 2003-06-06 11:20:53 EDT
Verified.