Bug 125048 - AspectJ compiler does not understand autoboxing
Summary: AspectJ compiler does not understand autoboxing
Status: RESOLVED WORKSFORME
Alias: None
Product: AspectJ
Classification: Tools
Component: Compiler (show other bugs)
Version: 1.5.0   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: aspectj inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-24 13:41 EST by Alex CLA
Modified: 2006-02-02 08:33 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alex CLA 2006-01-24 13:41:30 EST
When I try to compile the following code

public class Autoboxing
{
    public static void main(String[] args)
    {
        Ineteger i = 0;
    }
}

I get an error

Type mistamtch: cannot convert from int to Integer
Comment 1 Andrew Clement CLA 2006-01-24 16:59:23 EST
looks like you haven't supplied the -1.5 flag to ajc.  I can compile your program just fine with:

ajc -1.5 Autoboxing.java

unlike javac, ajc does not default to java5 source mode.
Comment 2 Andrew Clement CLA 2006-02-02 08:33:34 EST
I hope the -1.5 flag has fixed your problem.  Please reopen this bug if it hasnt.