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.
  • Loading branch information
codeZeilen committed Aug 23, 2023
1 parent 802deac commit b46aace
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 b46aace

Please sign in to comment.