Title: RE: [Eap-bugs] incorrect error highlighting?

Yeah, I've noticed this too.  It seems that IDEA does not accept the literal ("0") as being anything besides an int (no byte or long).

----------------------------
  .-.    | Steven Velez
  oo|    | Software Engineer
 /`'\    | alventive
(\_;/)   | 678-202-2226






-----Original Message-----
From: Bas Leijdekkers [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 22, 2002 8:59 AM
To: [EMAIL PROTECTED]
Subject: [Eap-bugs] incorrect error highlighting?


IDEA highlights an error in the following code. Jikes and javac have no
complaints:

public class Test {
 public byte getByte(Integer value) {
  return value == null?0:value.byteValue(); // highlighted as error
 }
}

Best regards,

--
Bas Leijdekkers
Carp Technologies BV
http://www.carp-technologies.com
tel. +31 53 4836382, fax: +31 53 4836383


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

Reply via email to