Message5872
Hello,
I am working on a Jython script that calls a library of mine.
I have had a bug recently because a script test "foo == None" happened to call "foo.equals(null)".
The custom "equals" method I had written was not expecting to be tested against null values and then crashed.
I believe that Jython could avoid this. A test 'foo == None' could just be translated to the Java counterpart 'foo == null'. I do not believe that "equals" is supposed to expect a call with null values.
What do you think ?
Thanks,
Raphael |
|
Date |
User |
Action |
Args |
2010-07-05 15:13:06 | rjolivet | set | recipients:
+ rjolivet |
2010-07-05 15:13:06 | rjolivet | set | messageid: <1278342786.26.0.880339459118.issue1627@psf.upfronthosting.co.za> |
2010-07-05 15:13:06 | rjolivet | link | issue1627 messages |
2010-07-05 15:13:04 | rjolivet | create | |
|