*** empty log message ***
authorcg
Thu, 05 Feb 1998 11:02:58 +0000
changeset 309 e1bfd26cadae
parent 308 9802b77e1c5f
child 310 6faa783b80f2
*** empty log message ***
JavaMethod.st
--- a/JavaMethod.st	Thu Feb 05 11:02:16 1998 +0000
+++ b/JavaMethod.st	Thu Feb 05 11:02:58 1998 +0000
@@ -76,6 +76,17 @@
     ^ ForceByteCodeDisplay
 
     "Created: 7.4.1997 / 20:11:39 / cg"
+!
+
+forceByteCodeDisplay:aBoolean
+    ForceByteCodeDisplay := aBoolean
+
+    "
+     self forceByteCodeDisplay:true
+     self forceByteCodeDisplay:false
+    "
+
+    "Created: / 4.2.1998 / 00:22:54 / cg"
 ! !
 
 !JavaMethod class methodsFor:'signature parsing'!
@@ -1027,6 +1038,9 @@
     self isAbstract ifTrue:[
         ^ AbstractMethodInvokationSignal raise.
     ].
+    ((self class numArgsFromSignature:signature) > self class maxNumberOfArguments) ifTrue:[
+	^ self error:'method cannot be executed - too many args'
+    ].
     ^ super invalidByteCode
 
     "Created: / 27.1.1998 / 21:48:01 / cg"
@@ -1804,6 +1818,6 @@
 !JavaMethod class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaMethod.st,v 1.61 1998/01/27 21:03:54 cg Exp $'
+    ^ '$Header: /home/jv/Projects/SmalltalkX/repositories/cvs/stx/libjava/JavaMethod.st,v 1.62 1998/02/05 11:02:58 cg Exp $'
 ! !
 JavaMethod initialize!