Community
Participate
Working Groups
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.
See Bug 116755 for another situation in AspectJ needs to be configured.
nrel...
not likely to happen any time soon