Message4151
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. |
|
Date |
User |
Action |
Args |
2009-02-21 22:35:48 | MrMeanie | set | recipients:
+ MrMeanie |
2009-02-21 22:35:48 | MrMeanie | set | messageid: <1235255748.11.0.00892416941386.issue1264@psf.upfronthosting.co.za> |
2009-02-21 22:35:47 | MrMeanie | link | issue1264 messages |
2009-02-21 22:35:47 | MrMeanie | create | |
|