I will try to reproduce the warning. And then I will want to write unit
tests. But what are you trying to do here? What should the resulting byte
array be? How should it relate to the incoming byte arrays?

AL

On Thu, Nov 27, 2025 at 12:05 AM Owen Thomas <[email protected]>
wrote:

> Hello.
>
> An interface that I am implementing has a method declared in the following
> way: byte[]a(byte[]...b);
>
> So, this method accepts a variable number of byte arrays in argument b.
>
> I noticed a yellow line under where I use this method in my code (I pass
> it a single byte array to the method in the call), and when I investigate
> what the warning is, it says the following:
>
> A primitive array passed to variable-argument method will not be unwrapped
> and its items will not be seen as items of the variable-length argument in
> the called method. Instead, the array will be passed as a single item.
>
> Being that I am not ready to run the code I am working with, I was
> wondering if anyone could clarify to me what the warning means, and whether
> I should take any further action other than suppressing the warning.
>
> Thanks,
>
>   Owen.
>

Reply via email to