It's fixed (http://www.intellij.net/tracker/idea/viewSCR?publicId=3920).

Integers between 0x80000000 and 0xFFFFFFFF are negative.

http://java.sun.com/docs/books/jls/second_edition/html/lexical.doc.html#48282

"The largest positive hexadecimal and octal literals of type int are 0x7fffffff and 
017777777777, respectively, which equal
2147483647 (231-1). The most negative hexadecimal and octal literals of type int are 
0x80000000 and 020000000000, respectively, each
of which represents the decimal value -2147483648 (-231). The hexadecimal and octal 
literals 0xffffffff and 037777777777,
respectively, represent the decimal value -1."


"Ted Hill" <[EMAIL PROTECTED]> wrote in message 
am7b2u$5vs$[EMAIL PROTECTED]">news:am7b2u$5vs$[EMAIL PROTECTED]...
> It may compile OK, but IntelliJ is right that it is too big,
>
> Integer.MAX_VALUE  is 0x7fffffff
>
>
> "Dmitry Gorodchanin" <[EMAIL PROTECTED]> wrote in message
> news:4873133.1032231005361.JavaMail.javamailuser@localhost...
> > Idea #647 incorrectly flags the following line as an error "Integer number
> too large", although Javac compiles it just fine.
> >
> > int hashCode = 0xdeadbeaf;
> >
>
>


_______________________________________________
Eap-bugs mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-bugs

Reply via email to