Summary: | DOMParser.createASTs() NPE at FieldReference.getConstantFor(FieldReference.java:408) | ||
---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Theodora Yeung <tyeung> |
Component: | Core | Assignee: | Jerome Lanneluc <jerome_lanneluc> |
Status: | CLOSED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | ||
Version: | 3.1 | ||
Target Milestone: | 3.2 M3 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Whiteboard: |
Description
Theodora Yeung
2005-10-06 14:21:46 EDT
correction to the repro: All three java files are in the same package "pkg". Thanks for the test case Theodora. Indeed the problem happens because the constant has not been initialized when MyAnno.java since it was not injected in the loop. Changed CompilationUnitResolver#resolve(ICompilationUnit[], ...) to force a resolve() after the faultInTypes(). I confirm that I don't see any performance degration (for example, the refactoring performance tests are not impacted). Added regression test BatchASTCreationTests#test069(). Thanks Jerome for the quick turn around. I noticed that the fix is slate for 3.2 M3, is it possible to have the fix also checked into the APT jdt.core branch? thanks. (In reply to comment #3) > Thanks Jerome for the quick turn around. > I noticed that the fix is slate for 3.2 M3, is it possible to have the fix > also checked into the APT jdt.core branch? thanks. No problem. I just checked in the fix and regression test in the APT branch. Fix verified in APT land. |