varargs not working

Description

Should create an IntStream, but it throws an error:

Activity

Show:

Luis Majano September 5, 2024 at 10:47 AM

I have added preliminary support on this. However, this can be extremely complicated especially when doing coercion. I have punted a bit on the most complex scenarios until I can get a better grasp of the solution.

Brad Wood July 25, 2024 at 7:59 PM

Not sure what you mean, but that code works on Lucee and Adobe.

A BoxLang array can always be used for a varargs argument on a Java method. Chat GPT suggested the following code, but you’ll need to test

You’ll need to detect when the last arg to a method is varargs and match an array to it (converting to an actual java primitive array)

Luis Majano July 25, 2024 at 6:56 PM

Ohh, not sure how to address this one, any ideas?

Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Fix versions

Priority

Sentry

Created July 25, 2024 at 2:51 AM
Updated January 23, 2025 at 6:16 AM
Resolved January 23, 2025 at 6:16 AM