Hi guys. I am having a problem with the integration of issue 4538: http://code.google.com/p/pharo/issues/detail?id=4538
I am serializing CompiledMethods with Fuel and then I materialize them. To test they are correct, I use #=
So far it was working correctly, but now for the materialized method it says they are not equal. The problem is that #= is failing in
(self sameLiteralsAs: aCompiledMethod)
And inside that method, it is failing because ��� (literal1 == literal2 or: [ literal1 literalEqual: literal2 ])
answers false.
So... why literal1 literalEqual: literal2 answers false?� from what I can say, having that selector: "literalEqual", then both MUST be equal, because they are.
The problem is that it was added:
Association >> literalEqual: otherLiteral
��� "Answer true if the receiver and otherLiteral represent the same literal.
��� Variable bindings are literally equals only if identical.
��� This is how variable sharing works, by preserving identity and changing only the value."
��� ^self == otherLiteral
So....I am not sure I agree with this change.
Any idea how can we deal with this problem?
Cheers
--
Mariano
http://marianopeck.wordpress.com