autoboxing and auto-unboxing error with '||' operation in Jdk 1.5

The fllowing is my code snippet:


Compile is ok,but the editor give me error. I found that '||' cann't accept object type? only primitive type. Is this a bug?

1 comment

This is definitely our bug, please submit SCR to the tracker.

"linux_china" <linux_china@hotmail.com> wrote in message
news:24089700.1095239716276.JavaMail.itn@is.intellij.net...

The fllowing is my code snippet:

>

 Boolean b2 = true;
> boolean b3 = b1 || b2;]]>

>

Compile is ok,but the editor give me error. I found that '||' cann't

accept object type? only primitive type. Is this a bug?


0

Please sign in to leave a comment.