Community
Participate
Working Groups
To repro enable the test inside org.eclipse.jdt.apt.tests.APTBuilderTests. Rename _testExtraDependencies to testExtraDependencies. On line 285, a full build is performed. At this point the type p1.p2.p3.p4.A registers a dependency on p1.p2.p3.p4.C. This happens through the CompilationParticipantResult. Then a structural change to C is made and on line 292 an incremental build is performed. It is expected that A would be recompiled, but it is not. It is my belief that the problem is in ReferenceCollection.addDependencies(). It does not add a simpleNameReference for "C", it only adds the qualifiedNameReferences.
Created attachment 38997 [details] Proposed patch to ReferenceCollection.addDependencies() This adds in all simple names that do not already exist.
+1 for 3.2RC2
Released patch Tim, please enable your APT test. thx
I enabled the test.
Verified with I20060427-1600 for 3.2RC2 (since all regression tests passed)