New Jacks Regressions: Constant Folding of Casts

Ranjit Mathew rmathew@gmail.com
Tue Jul 20 07:30:00 GMT 2004


Hi,

  In the last 24 hours, the following:

    case ((int )Float.NaN == 0 ? 1 : 0): break;

now gives an error saying "Constant expression required".
This causes 4 new Jacks failures. (Note that casting NaN
to an int should give the value 0.)

I note that something like "0 == 0 ? 1 : 0" does not
give this error.

I am not able to quickly tell what could be causing
this failure.

Any insights?

Ranjit.

-- 
Ranjit Mathew          Email: rmathew AT gmail DOT com

Bangalore, INDIA.      Web: http://ranjitmathew.tripod.com/



More information about the Java mailing list