--- a/src/JavaMethod.st Sat Feb 11 13:38:42 2012 +0000
+++ b/src/JavaMethod.st Sat Feb 11 15:39:16 2012 +0000
@@ -1609,10 +1609,15 @@
!JavaMethod methodsFor:'initialization'!
resolve
- "Resolves all references used by this method. When successful
- (i.e., all references has been successfully resolved, a
+ "Called by VM to resolve all references used by this method. When
+ successful (i.e., all references has been successfully resolved, a
A_RESOLVED flag is set (to prevent VM from subsequent calls
- to this method)"
+ to this method)
+
+ Returns 1 if successfull, 0 if not (at least one reference
+ could not been resolved) or -1 when some (unspecified) erorr
+ occurs.
+ "
"Marcel, continue here!! And ALWAYS commit ALL the code!! Sigh"
self breakPoint:#mh.
@@ -1622,8 +1627,14 @@
"/When successful, do:
"/accessFlags := accessFlags | A_RESOLVED
+ "/RETURN 1...OK,
+ "/ 0...Something could not be resolved
+ "/ -1...Some error
+
+ ^0 "/for now
+
"Created: / 09-02-2012 / 20:59:22 / mh <hlopik@gmail.com>"
- "Modified (comment): / 11-02-2012 / 13:34:15 / Jan Vrany <jan.vrany@fit.cvut.cz>"
+ "Modified: / 11-02-2012 / 13:46:09 / Jan Vrany <jan.vrany@fit.cvut.cz>"
!
setAccessFlags:flags