RexxLA / NetRexx

Other
8 stars 0 forks source link

Interpreter fails where compiled class succeeds (was NETREXX-24) #7

Open rvjansen opened 2 years ago

rvjansen commented 2 years ago

While preparing for an ef fort to have the class sources compiled by the njpipes compiler interpreted to make interpreted execution of pipes a reality stumbled upon this example of a class that compiles ok and can be executed, but not interpreted. This is the result: (class source is attached) [fifi:njpipes/src/examples] rvjansen% java -cp /Users/rvjansen/apps/netrexx/netrexxc/trunk/build/lib/NetRexxC.jar:$NJPIPES_HOME/njpipesC.jar COM.ibm.netrexx.process.NetRexxC locatetest.nrx -arg dummy NetRexx portable processor , version 3. 00 Copyright (c) RexxLA, 2011. All rights reserved. Parts Copyright (c) IBM Corporation, 1995,2008. Program locatetest.nrx === class locatetest === constructor locatetest(Object) overrides pipe() method reset function get(Object) method setup(Object) method config method setup2 method run signals ThreadQ overrides stage.run function main(String[]) signals ThreadQ ===== Exec: locatetest ===== ===== Exception running class locatetest: java.util.EmptyStackException ===== — in locatetest.get(Object) [locatetest.nrx:53] 57 +++ e = locatetest pool.pop() +++ ^^^ — in locatetest.main(String[]) [locatetest.nrx:137] 139 +++ p = locatetest.get(buildArg(a)) +++ ^^^ Processing of 'locatetest.nrx' complete