If anyone got my earlier messages to this topic
please excuse. But I never got the mails back and
they did not show up in the archive so I assume
something went wrong.
Hello !
I think there is a Bug in the implementation of the conditional
(ternary) operator in the latest jdk1.2 for linux.
Given the following code:
class test{
public static void main(String[] args) {
int x=6;
double d=7.7;
if (x>d) System.out.println("true");
else System.out.println("false");
System.out.println( (x>d)?99.9:9);
}
}
the correct output is:
false
9.0
as tested with jdk1.2.2 for win32; jdk1.1.7 for linux
jdk1.2-v2 (glibc2.0.7) gives me:
false
99.9
(tested on SuSe-Linux 6.1 )
Could someone please confirm this ?
Oktay Akbal.
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]