Skip to content

Commit

Permalink
Fixes an issue in ContextS2 resulting from using class identity inste…
Browse files Browse the repository at this point in the history
…ad of name when determining whether two partial methods are the same. As a result the partial method is not correctly removed in case of a recompile within a new class.

(cherry-picked from commit b46aace)
  • Loading branch information
codeZeilen authored and ekrebs5 committed Oct 2, 2023
1 parent 49546a7 commit de1e829
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*Babylonian-Compiler
= anotherPartialMethod
"see #hash"

^ anotherPartialMethod class == self class
and: [self basicLayers = anotherPartialMethod basicLayers
and: [self selector = anotherPartialMethod selector
and: [self methodClass name = anotherPartialMethod methodClass name]]]
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
*Babylonian-Compiler
hash
"see #="

^ (self basicLayers hash bitXor: self selector hash) bitXor: self class name hash
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"class" : {
},
"instance" : {
"=" : "sp 8/23/2023 14:35",
"hash" : "sp 8/23/2023 14:36" } }
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
{
"name" : "CSPartialMethod" }

0 comments on commit de1e829

Please sign in to comment.