Message4151

Author MrMeanie
Recipients MrMeanie
Date 2009-02-21.22:35:46
SpamBayes Score 8.4854344e-07
Marked as misclassified No
Message-id <1235255748.11.0.00892416941386.issue1264@psf.upfronthosting.co.za>
In-reply-to
Content
The 'is not' test exhibits incorrect behavior when wrapping Java objects.

Please find attached a zip containing a java source file to compile, and
a python unittest to run.

It checks that the identity comparison functions work as they should.
The particular issue that is uncovered here occurs when:

The test works by creating a IdentityTestObject().
Its 'getThis()' method is invoked, which returns itself.
This results in this object getting wrapped twice by Jython; the
underlying Java object is identical, but the wrappers are different.

The 'is' check works fine, in that it results in True.
However, the 'is not' check fails, also resulting in True.
History
Date User Action Args
2009-02-21 22:35:48MrMeaniesetrecipients: + MrMeanie
2009-02-21 22:35:48MrMeaniesetmessageid: <1235255748.11.0.00892416941386.issue1264@psf.upfronthosting.co.za>
2009-02-21 22:35:47MrMeanielinkissue1264 messages
2009-02-21 22:35:47MrMeaniecreate