From: Colin <net...@im...> - 2021-03-12 05:43:07
|
Hello Leslie I always thought that the first word after the ( is supposed to be the name of the generated class file but I see now that it is 'not mandatory'. Looks like this may be a bug. z:\>java org.netrexx.njpipes.pipes.runner "pipe (end !) literal Works?|console" 59 +++ _s_2 = () +++ ^ +++ Error: Expression expected Exception in thread "main" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 at java.util.ArrayList.rangeCheck(Unknown Source) at java.util.ArrayList.get(Unknown Source) at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217) at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1240) at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1337) at org.netrexx.njpipes.pipes.runner.main(runner.java:76) z:\>java org.netrexx.njpipes.pipes.runner "pipe (*test1* end !) literal Works?|console" Works? I don't have the latest versions installed yet but the issue exists in 3.08 as well and perhaps even in earlier versions. Cheers Colin On 2021-03-11 18:00, J Leslie Turriff wrote: > | $ pipe '(end !) literal Works?|console' > | 59 +++ _s_2 = () > | +++ ^ > | +++ Error: Expression expected > | Exception in thread "main" java.lang.IndexOutOfBoundsException: Index 0 out of bounds > for length 0 > | at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64) > | at > java.base/jdk.internal.util.Preconditions.outOfBoundsCheckIndex(Preconditions.java:70) > | at java.base/jdk.internal.util.Preconditions.checkIndex(Preconditions.java:248) > | at java.base/java.util.Objects.checkIndex(Objects.java:372) > | at java.base/java.util.ArrayList.get(ArrayList.java:459) > | at org.netrexx.process.NetRexxC.clgMain(NetRexxC.java:217) > | at org.netrexx.njpipes.pipes.compiler.compile(compiler.java:1260) > | at org.netrexx.njpipes.pipes.compiler.<init>(compiler.java:1357) > | at org.netrexx.njpipes.pipes.runner.main(runner.java:76) > > According to page 17 of the NetRexx Pipelines Quick Start Guide (Version 4.01-beta3 of > December 25, 2020), this ought to work. What am I missing? > > Leslie > > openjdk version "11.0.10" 2021-01-19 > OpenJDK Runtime Environment (build 11.0.10+9-suse-lp152.2.9.1-x8664) > OpenJDK 64-Bit Server VM (build 11.0.10+9-suse-lp152.2.9.1-x8664, mixed mode) > openSUSE Leap 15.2 x86_64 > -- > > > _______________________________________________ > netrexx-pipelines mailing list > net...@li... > https://lists.sourceforge.net/lists/listinfo/netrexx-pipelines |