Conversion handling of method definitions using List parameters
are not supported because the Jacl2Jython program does not recognize or track
variable types, such as List, String,
or others. If your Jacl script has a method definition with a List parameter,
the Jacl2Jython program converts it using simple arguments:
JACL: proc methodX {svrName args}{
==>
JYTHON: def methodX (svrName, args):
You need to ensure your Jacl invocations explicitly use a
List during
invocation, or modify the preliminary converted Jython script to define the
use of
List parameters. Otherwise, you will get a
Jython runtime error:
too many arguments.
JACL: methodX $svrName application $appName
==>
JYTHON: methodX (svrName, "application", appName)
Solution:
Manually modify Jacl invocations if it is not already using an explicit
List:
JACL: methodX $svrName [list application $appName] #manually modified
==>
JYTHON: methodX (svrName, ["application", appName])
Alternatively, you can manually modify the preliminary converted
Jython script:
JYTHON: methodX (svrName, ["application", appName]) #manually modified