changes for new methodDict
authorcg
Mon, 24 Jun 1996 15:31:59 +0000
changeset 64 2e4b425dc40c
parent 63 74442cd26c02
child 65 cc8721023892
changes for new methodDict
JavaMethod.st
--- a/JavaMethod.st	Mon Jun 24 15:11:09 1996 +0000
+++ b/JavaMethod.st	Mon Jun 24 15:31:59 1996 +0000
@@ -7,7 +7,7 @@
 !
 
 
-!JavaMethod class methodsFor:'initialization'!
+!JavaMethod  class methodsFor:'initialization'!
 
 initialize
     SignatureTypeCodes := IdentityDictionary new.
@@ -27,7 +27,7 @@
     "
 ! !
 
-!JavaMethod class methodsFor:'signature parsing'!
+!JavaMethod  class methodsFor:'signature parsing'!
 
 argSigArrayFromSignature:aSignature
     "given a signature, return a specArray for the arguments"
@@ -493,16 +493,16 @@
 who
     "return the class and selector of where I am defined in."
 
-    |idx|
+    |sel|
 
-    idx := javaClass methodArray identityIndexOf:self.
-    idx == 0 ifTrue:[^ nil].
-    ^ Array with:javaClass with:(javaClass selectorArray at:idx)
+    sel := javaClass methodDictionary keyAtValue:self ifAbsent:nil.
+    sel isNil ifTrue:[^ nil].
+    ^ Array with:javaClass with:sel.
 ! !
 
-!JavaMethod class methodsFor:'documentation'!
+!JavaMethod  class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaMethod.st,v 1.14 1996/05/06 19:32:16 cg Exp $'
+    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaMethod.st,v 1.15 1996/06/24 15:31:59 cg Exp $'
 ! !
 JavaMethod initialize!