Bug 159209 - [model] The CompilationUnit associated with an IJavaElementDelta does not include diagnostics generated from APT
Summary: [model] The CompilationUnit associated with an IJavaElementDelta does not inc...
Status: RESOLVED WONTFIX
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.3 RC4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-28 18:26 EDT by Tom Stamm CLA
Modified: 2007-06-26 18:54 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tom Stamm CLA 2006-09-28 18:26:02 EDT
The javadoc on IJavaElementDelta.getCompilationUnitAST says that it returns "the compilation unit AST created by the last reconcile operation", which seems to imply that it has been processed by both the main jdt compiler and any annotation processors. But when I call getProblems() on that AST I only get diagnostics from the base compiler (syntax errors, bad types, etc) and not any that were generated by an annotation processor, even though those do show up in the source view.
Comment 1 Jerome Lanneluc CLA 2007-06-20 06:55:36 EDT
APT uses ReconcileContext#putProblems(...) to report problems. This specifies that these problems are reported to the problem requestor, not added to the AST. Also CompilationUnit#getProblems() specifies that the problems are the one created by the compiler (not by a compiler participant).
Works as designed.