You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG][JAVA][NATIVE] Pojo with Set uses Arraylist, wrong datatype in for loop #14833
I experience the same issue. Version 6.2.1 initialized the java.util.Set with this.fieldName = new LinkedHashSet<>();, which is correct. Version 6.3.0 and version 6.4.0 initializes the java.util.Set with this.fieldName = new ArrayList<>(); (without importing java.util.ArrayList), which is broken code.
@wing328 the official maintainer of Java (Java 11 Native HTTP client) @bbdouglas, has been inactive since 2019. Maybe this API client should be marked as unsupported?
I've filed #14961 to fix the issue. Please pull it to give it a try. You may need the option --additional-properties supportUrlQuery=false to skip the toUrlQuery method, e.g.
Activity
mvanglabbeek commentedon Mar 2, 2023
I experience the same issue. Version 6.2.1 initialized the
java.util.Setwiththis.fieldName = new LinkedHashSet<>();, which is correct. Version 6.3.0 and version 6.4.0 initializes thejava.util.Setwiththis.fieldName = new ArrayList<>();(withoutimporting java.util.ArrayList), which is broken code.rignicat commentedon Mar 6, 2023
@wing328 the official maintainer of Java (Java 11 Native HTTP client) @bbdouglas, has been inactive since 2019. Maybe this API client should be marked as unsupported?
wing328 commentedon Mar 15, 2023
I've filed #14961 to fix the issue. Please pull it to give it a try. You may need the option
--additional-properties supportUrlQuery=falseto skip thetoUrlQuerymethod, e.g.wing328 commentedon Mar 15, 2023
The
nativelibrary support is maintained by the community. There has been a lot of enhancements (PRs) so I don't think we should deprecate it.We appreciate @bbdouglas for contributing the first version of
nativelibrary supportwing328 commentedon Mar 17, 2023
the fix has been merged and will be included in the upcoming 6.5.0 release
rignicat commentedon Mar 22, 2023
Yeah that fixed the first issue, and the additional property circumvents the second issue. Thanks a bunch :)