Bug 418557 - Enhance output of "declare warning" & "declare error" to include source location
Summary: Enhance output of "declare warning" & "declare error" to include source location
Status: CLOSED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.7.4   Edit
Hardware: PC Mac OS X
: P3 trivial (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-02 19:01 EDT by Matthew Adams CLA
Modified: 2013-10-09 10:10 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthew Adams CLA 2013-10-02 19:01:34 EDT
It would be helpful if the output of declare warning & declare error included the offending source file path & line number, so that, for example,

[ERROR] @internal(error): constructor, method, or field not designed for public consumption; access is disallowed

becomes

[ERROR] @internal(error): constructor, method, or field not designed for public consumption; access is disallowed at /Users/matthew/Documents/foobor/src/test/java/app/test/unit/FooTest.java:32:0::0

It appears that only in the case of compilation failure do you get context.
Comment 1 Andrew Clement CLA 2013-10-03 10:50:00 EDT
Did you try using the message inserts as described in http://eclipse.org/aspectj/doc/released/README-169.html ?
Comment 2 Matthew Adams CLA 2013-10-03 11:00:17 EDT
I had no idea those existed!  Consider this closed.

A quick search using site:eclipse.org/aspectj didn't reveal much in the official AspectJ docs on that, only the readme you indicated.