opened
serch037
username_0
However, if I remove call `rand.nextInt()` without arguments, the code works correctly.

Furthermore, removing the line:
 `                        javaemul.internal.InternalPreconditions.checkCriticalArgument(n > 0);
`
in j4ts.js, makes the overloaded version work.
Java Random NextInt Invalid Overload
issue
created
schaumb
username_1
I created an issue for jsweet transpiler:
https://github.com/cincheo/jsweet/issues/446

This not a j4ts bug, but the compiler affects on this.
comment
created
schaumb
username_1
I PR -ed a solution for this issue inside j4ts repo. If that is accepted, then there is no bug :)
comment
closed
schaumb
username_1
issue