You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
João Bispo edited this page May 29, 2024
·
3 revisions
Roadmap
Extend language specification to include generic types
Conversion to TypeScript
node-java
When using code such as public static AScope scope(AStatement... statements) { /*...*/ }, (note the AStatement... type of the arguments) the code in JS/TS should call this method with individual arguments instead of an array.
This is due to node-java's behaviour. If an array is passed, the Java type inferred will be Object[] and an error will be thrown. However, if arguments are passed individually, each argument will receive the correct type. In summary, node-java is not capable of inferring an array's type.