-
Notifications
You must be signed in to change notification settings - Fork 2
Home
João Bispo edited this page May 29, 2024
·
3 revisions
- Extend language specification to include generic types
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.
- fmkdir(fileOrBaseFolder: any, optionalFile?: JavaClasses.File | string ) - Calls mkdir.