Bug 103104 - Support Xlint options in aop.xml for load-time weaving
Summary: Support Xlint options in aop.xml for load-time weaving
Status: REOPENED
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P5 normal (vote)
Target Milestone: 1.5.0 M4   Edit
Assignee: Alexandre Vasseur CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 106035
  Show dependency tree
 
Reported: 2005-07-07 19:29 EDT by Ron Bodkin CLA
Modified: 2009-08-30 02:50 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ron Bodkin CLA 2005-07-07 19:29:56 EDT
It would be very helpful to suppress certain known warnings for load-time 
weaving. I would like to have the ability to reference an Xlint file or give 
Xlint directives directly in the aop.xml file.
Comment 1 Alexandre Vasseur CLA 2005-07-08 03:53:12 EDT
<weaver options="-Xlint:none" /> works today (or similar), but you cannot
provide finer grained Xlint configuration

I want to avoid the file dependancy since the file would have to be somewhere
packed in the deployed unit.

Is this fine grained configuration possible on command line without using a file ?
Comment 2 Ron Bodkin CLA 2005-07-08 11:00:59 EDT
I believe the command line offers just 
        -Xlint:<level>      set default level for crosscutting messages
                            (<level> may be ignore, warning, or error)

Unless you want to use a properties file:

        -Xlintfile <file>   specify properties file to set per-message levels
                            (cf org/aspectj/weaver/XlintDefault.properties)

I think it would be better if you could specify any settings using aop.xml, 
but having a well-known name like META-INF/Xlint.properties that it checks 
would be a reasonable alternative to give the functionality with little effort.
Comment 3 Alexandre Vasseur CLA 2005-08-12 09:39:49 EDT
committed impl for -Xlint:default, -Xlint:none etc in aop.xml weaver options
+ -Xlintfile:pathToResourceVisibleFromClassLoaderOFAOPXML

give it a try at next snapshot
Comment 4 Eclipse Webmaster CLA 2009-08-30 02:50:09 EDT
LATER/REMIND bugs are being automatically reopened as P5 because the LATER and REMIND resolutions are deprecated.