Closed paul-bennett closed 5 months ago
Problem is caused by the way parameters are decoded in TextOutput
. Juggle currently uses Method.getGenericParameterTypes()
, but should instead look at Method.getParameters()
since the latter returns an array of Parameter
objects, which include the isVarArgs()
method.
Beware though... does the Parameter
include the details of generics?
Mostly done. One remaining issue is with Stream<T>.of(T...)
, which Juggle is listing as taking an array parameter
When emitting a method signature, Juggle currently emits any final varargs parameter as an array type. Instead it should emit it as the underlying element type followed by an ellipsis.
Current behaviour:
Intended behaviour: