Community
Participate
Working Groups
The output for the messages is too verbose. Most of the time we don't have a compilation unit source to report error/warnings against. This is used only for apt message reporting and is also related to bug 342600 where we could take advantage of a new info severity.
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.