Bug 116411 - Improve consistency, maintainability and reusability of compiler option parsing
Summary: Improve consistency, maintainability and reusability of compiler option parsing
Status: NEW
Alias: None
Product: AspectJ
Classification: Tools
Component: Testing (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-15 04:26 EST by Matthew Webster CLA
Modified: 2010-01-26 15:11 EST (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 Webster CLA 2005-11-15 04:26:43 EST
There are at least 3 ways to launch the compiler: ajc, iajc (Ant) and –
javaagent (LTW). Each mechanism has its own option parsing logic which means 
when an option is added or its default behaviour is changed code must be added 
or modified in multiple places. Also when a new mechanism is needed, such as 
LTW or the proposed command line weaving (Bug 113191), exiting logic cannot 
easily be reused. 

I propose a new table driven design which would be used by all mechanisms. 
This would make it easy to find a definitive list of options, determine which 
are appropriate for each mechanism (e.g. –outjar makes no sense for LTW), 
change default behaviour, deprecate older options and add new ones. It would 
also help automate testing and determine help text.
Comment 1 Matthew Webster CLA 2005-11-17 08:41:20 EST
See Bug 116755 for another situation in AspectJ needs to be configured.
Comment 2 Andrew Clement CLA 2006-10-04 05:26:25 EDT
nrel...
Comment 3 Andrew Clement CLA 2010-01-26 15:11:43 EST
not likely to happen any time soon