Summary: | [APT] Improve output for javax.annotation.processing.Messager problems | ||||||
---|---|---|---|---|---|---|---|
Product: | [Eclipse Project] JDT | Reporter: | Olivier Thomann <Olivier_Thomann> | ||||
Component: | Core | Assignee: | Olivier Thomann <Olivier_Thomann> | ||||
Status: | VERIFIED FIXED | QA Contact: | |||||
Severity: | normal | ||||||
Priority: | P3 | CC: | satyam.kandula, srikanth_sankaran | ||||
Version: | 3.7 | ||||||
Target Milestone: | 3.7 M7 | ||||||
Hardware: | PC | ||||||
OS: | Windows 7 | ||||||
Whiteboard: | |||||||
Attachments: |
|
Description
Olivier Thomann
2011-04-21 14:10:50 EDT
Created attachment 193868 [details]
Proposed fix
annotation processing with message logging is required to check this.
Released for 3.7M7 The output message is definitely better now. However, APT messages that doesn't have the file name is being reported as Error instead of ERROR. Here is the message that shows up now. ########## 1. ERROR in pkg\Test1.java (at line 8) int ^^^ Syntax error on token "int", delete this token ---------- 2. Error: Annotation annots.annot1 should not be used 2 problems (2 errors) ############ Olivier, was there any specific reason for using Error instead of ERROR? (In reply to comment #3) > Olivier, was there any specific reason for using Error instead of ERROR? I wanted an easy way to distinguish between apt and compiler error reporting. If you believe it is easier and more consistent to use ERROR all the time, it is trivial to change. I personally prefer to have a consistent message unless the difference is really useful. I leave the decision to you :) (In reply to comment #5) > I personally prefer to have a consistent message unless the difference is > really useful. I leave the decision to you :) Fixed for next build. It will use ERROR in all cases now. Per comment# 3, this bug fix was already verified by Satyam using build id: I20110421-1800 Agree with the subsequent change to diagnostic string. |