comment added
authorcg
Tue, 24 Apr 2001 14:23:50 +0000
changeset 707 aa9b0bb5cafd
parent 706 ddadb8eb2297
child 708 f4ec72862d05
comment added
JavaUnresolvedMethodrefConstant.st
--- a/JavaUnresolvedMethodrefConstant.st	Sun Dec 31 12:27:50 2000 +0000
+++ b/JavaUnresolvedMethodrefConstant.st	Tue Apr 24 14:23:50 2001 +0000
@@ -12,6 +12,8 @@
 
 
 
+"{ Package: 'stx:libjava' }"
+
 JavaUnresolvedRefConstant subclass:#JavaUnresolvedMethodrefConstant
 	instanceVariableNames:'classIndex'
 	classVariableNames:''
@@ -208,6 +210,10 @@
 !
 
 resolveMethod
+    "this is possibly invoked by the VM, when an unresolved methodRef is encountered.a
+     It should load&resolve the methodRef, and return the actual method,
+     or else return nil (if the method cannot be resolved)."
+
     |nm sig mthd cls class|
 
     class := (constantPool at:classIndex).
@@ -219,6 +225,7 @@
         JavaVM throwClassNotFoundException:class name.
         ^ nil.
     ].
+
 self halt.
     cls := class javaClass.
     cls ~~ class ifTrue:[
@@ -240,11 +247,10 @@
     ].
 
     ^ mthd
-
 ! !
 
 !JavaUnresolvedMethodrefConstant class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedMethodrefConstant.st,v 1.14 1999/11/14 14:54:27 cg Exp $'
+    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaUnresolvedMethodrefConstant.st,v 1.15 2001/04/24 14:23:50 cg Exp $'
 ! !