Parse and forward JavaC 'Note:' level messages#312
Parse and forward JavaC 'Note:' level messages#312gnodet wants to merge 2 commits intocodehaus-plexus:masterfrom
Conversation
3f48996 to
1b578f4
Compare
|
This PR should also integrate #57 |
Theses messages can be generated by annotation processors using `printMessage(Diagnostic.Kind.NOTE, "...")`.
If the -log argument is used, the resulting log file is scanned for compiler output, both text and xml formatting supported. Otherwise a temporary log file is used to capture compiler output. * Unit tests refactored * Output emitted as "INFO" are reported as Kind.NOTE * Column count adjusted to be 1-based index
|
Actually, I'm not sure about including the |
|
For info, in Java 21, a note was added that span multiple lines (see https://inside.java/2023/07/29/quality-heads-up/). This produce the following output from javac: This should probably be handled in this PR when note level messages are parsed. Not sure what is the plan to merge this, but it would be really useful to have at least the note parsing, to handle this case when compiling with Java 21. Currently note messages are skipped, but this also only handle single line messages, so only the first line is skipped and the remaining lines are prepended with the next warning which is not a good output. |
Theses messages can be generated by annotation processors using
printMessage(Diagnostic.Kind.NOTE, "...").