Community
Participate
Working Groups
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.
Problem also occurs on JDTCompilerAdapter.java, last import doesn't resolve (*.Messages).
Cannot reproduce in runtime workbench.
Was able to recreate same problem on different machine, but when exiting/restarting Eclipse, problem didn't show up either.
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.
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.
Step 3 is not needed.
S=Actually step 3 is needed. Not sure why I reproduced it without step 3.
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().
Verified.