Bug 224962 - AjcTask doesn't work with Java6
Summary: AjcTask doesn't work with Java6
Status: RESOLVED FIXED
Alias: None
Product: AspectJ
Classification: Tools
Component: Ant (show other bugs)
Version: DEVELOPMENT   Edit
Hardware: PC Windows XP
: P2 normal (vote)
Target Milestone: 1.6.0 RC1   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-31 14:11 EDT by Ignacio Alvarez CLA
Modified: 2008-04-01 00:48 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 Ignacio Alvarez CLA 2008-03-31 14:11:02 EDT
Although support for Java6 has been added in the last milestone, you can't use it from ant because AjcTask doesn't recognize the "source=1.6" and "target=1.6" parameters.

It's easy to fix by modifying AjcTask.java and adding the missing constants:

     static final String[] TARGET_INPUTS = new String [] 
    { "1.1", "1.2", "1.3", "1.4", "1.5", "1.6" };
    static final String[] SOURCE_INPUTS = new String [] 
    { "1.3", "1.4", "1.5", "1.6" };
    static final String[] COMPLIANCE_INPUTS = new String [] 
    { "-1.3", "-1.4", "-1.5", "-1.6" };

Thanks.
Comment 1 Andrew Clement CLA 2008-04-01 00:48:50 EDT
fixed - thanks for spotting that!