Issue OBJS19 (string equal bug) has just been modified by user rob...@ma...
You can view the issue detail at the following URL:
<http://icandy.homeunix.org:443/scarab/issues/id/OBJS19>
The following modifications were made to this issue:
I think I've figured out what the deal is... OString#equals(Object obj) takes a java.lang.Object, which means that what ends up getting passed to it is the result of OString#castToJavaObject()... This is desirable, because that is what makes it possible to use numbers/strings/etc in java types that use Object (ie. Hashtable, LinkedList, etc.) and be compatible with java code that would also be accessing that collection class, but it means that OString#equals needs to work for both the condition that it's arg is an OString or an java.lang.String... there are perhaps other equals() methods in oscript.data.* that have the same issue.
|