Those are just java errors.. if you try to use an operator like * or < against a non primitive Float for instance, you will see that even in normal java code. Now is v1 is bound to a field, it will always be an Object type.
Its only in Java 5 that you can start to use primitive operators on the object counterparts. It kills me that java is like that, as the primitives are a royal pain to deal with in frameworks. But back in the day all the C++ people were paranoid about creating objects without the "new" statement, hence the primitive/Object disconnect... incredibly frustrating... On 4/27/06, Alberto Siena <[EMAIL PROTECTED]> wrote: > > Oops, I opened the bug report at the same time of your post, sorry. > > Btw, I don't know what I did in my tests yesterday, but today both of > these > produce errors: > > n2 : Node( v2 : value == ( new Float( v1 * r.getMetric() ) ) ); > > --> The operator < is undefined for the argument type(s) java.lang.Float, > java.lang.Float > > and > > n2 : Node( value -> (getValue() < n1.getValue() * r.getMetric())); > > --> The operator * is undefined for the argument type(s) Float, float > > now I begin to be confused... > > Alberto > > >
