AutoBoxing working?

Do I have to turn Autoboxing on?
Idea says this code has errors at the underlined areas:

= j) = " + (_i >= j_));
        System.out.println("(i <= j) = " + (_i <= j_));
        System.out.println("(i == j) = " + (i == j));]]>


It compiles and runs fine using JDK 5.0 beta 3
it prints

(i >= j) = true
(i <= j) = true
(i == j) = false

Why is Idea flagging this as an error?
I am doing something wrong or should I submit an SCR?

Thanks,

Yogurt

1 comment
Comment actions Permalink

Go to Project Settings | Paths, set the "Language Level" dropdown at the bottom to "1.5" and restart IDEA. It should work fine after that.

0

Please sign in to leave a comment.