diff options
author | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-01-22 21:52:24 +0100 |
---|---|---|
committer | Alexander Kriegisch <Alexander@Kriegisch.name> | 2023-01-22 21:52:24 +0100 |
commit | 827115335ff1269df28085e215b081e24596ff1d (patch) | |
tree | 9917e245f9e9b76c20cfcf1433a8e36e2f4ba0b7 /docs/developer/RELEASE.md | |
parent | ac2b81c3f8ab0a7af7c5078656547f1c7a9a9499 (diff) | |
download | aspectj-827115335ff1269df28085e215b081e24596ff1d.tar.gz aspectj-827115335ff1269df28085e215b081e24596ff1d.zip |
Fix indentation of compilation results on the console
Whenever warnings or errors were printed via CompilationResult.toString,
indirectly also using MessageUtil.renderMessage(IMessage, boolean),
messages containing context info such as code snippets with carets
marking erroneous tokens - see also the previous commit - prefixes like
"[warning 1] warning at " were printed right in front of the code
snippets. I.e., the carets marking erroneous tokens in the second line
were not indented like the first line with the code snippet, leading to
(simplified) output like:
[warning 1] warning at after() : execution(FooBar Blah.*()) {
^^^^^^
xxx FooBar [Xlint:invalidAbsoluteTypeName]
This was fixed to now correctly indent lines 2 to n according to line 1,
yielding the correct output:
[warning 1] warning at
after() : execution(FooBar Blah.*()) {
^^^^^^
xxx FooBar [Xlint:invalidAbsoluteTypeName]
Especially with longer, more complex context lines, this helps to
identify the erroneous section. BTW, for one-line messages, everything
of course looks like before.
Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
Diffstat (limited to 'docs/developer/RELEASE.md')
0 files changed, 0 insertions, 0 deletions