sormuras / command-line-interface

Arguments Splitter for Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Only try factory methods with String and varargs of String

jbee opened this issue · comments

https://github.com/sormuras/command-line-interface/blob/main/main/main/RecordSchemaSupport.java#L114 this is meant to only pick up signatures like of(String first, String... more) but currently it will also pick up of(String first, String[] more).

@forax Not sure if it is possible but if I am sure you know how.

You can filter out the MethodHandle with isVarargsCollector()

fixed by 2070ff3