Message5872

Author rjolivet
Recipients rjolivet
Date 2010-07-05.15:13:04
SpamBayes Score 0.015483871
Marked as misclassified No
Message-id <1278342786.26.0.880339459118.issue1627@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2010-07-05 15:13:06rjolivetsetrecipients: + rjolivet
2010-07-05 15:13:06rjolivetsetmessageid: <1278342786.26.0.880339459118.issue1627@psf.upfronthosting.co.za>
2010-07-05 15:13:06rjolivetlinkissue1627 messages
2010-07-05 15:13:04rjolivetcreate