My favorites | Sign in
Project Home Downloads Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 65: Implement assertSame() and assertNotSame()
1 person starred this issue and may be notified of changes. Back to list
 
Project Member Reported by virtix, Feb 23, 2008
Elevate assertSame(obj1,obj2) and assertNotSame(obj1,obj2).

Note: May need to go deep inside or outside of CF and use java as CF has no
apparent native way of comparing instances of CFCs or data structures.

 
Feb 23, 2008
Project Member #1 virtix
Got it working by using Mark Mandels' JavaLoader to load a simple java class that
simply does obj1 == obj2. However, it's failing with arrays in CFMX7, which appears
to pass arrays to CFCs as values and not reference. Initial tests when passing
directly to the java class worked as expected. CF8 may be different. Maybe we can get
the server version and do something bad like alter the state of the array with
createUUID() ...
Feb 27, 2008
Project Member #2 virtix
done with System.getIdentityHashCode(...) but doesn't work with arrays as arrays are
passed by value to  UDFs
Status: Fixed

Powered by Google Project Hosting