Community
Participate
Working Groups
Build F2 Unclear how I got there, but at some point project jdt-core-home was listed amongst the Java project, and package view was still operating fine.
Created attachment 1173 [details] Package view showing non-java project jdt-core-home
Closing / reopening fixed the problem...
Cannot reproduce anymore...
Looking at the implementation of DeltaProcessor, a delta can be issued when adding a new file onto a non-java project (non-java resource handling): - create project SimpleP (simple project) - add file 'titi.txt' Java Model[*]: {CHILDREN} SimpleP[*]: {CONTENT} ResourceDelta(/SimpleP/titi.txt)[+]
Steps to reproduce original defect are actually: - create non-java project - add a zip file into it Package view now shows ALL non java projects !
More Steps (previous set is not enough to trigger UI refresh exposing bogus state). - create Java project JP - create simple project SP1 - add toto.txt file to SP1 - open package view (in cloned perspective), observe that only JP is visible - in resource perspective, close JP then reopen it - observe that package view now shows both JP and SP !?
There are 2 defects: - non-java projects should never be added to the cache of Java projects - non-java resource deltas should never be computed for non-java projects
Fixed, need a regression test.
Double-checked change in DeltaProcessor.
Added regression tests: JavaModelTests.testAddFileToNonJavaProject() and JavaElementDeltaTests.testAddFileToNonJavaProject().
Verified.
*** Bug 19548 has been marked as a duplicate of this bug. ***