Skip to content

Commit 4dac27d

Browse files
authored
Fix collection query mapping (#184)
* ThreadLocal * Update pom.xml * Update ProcessingContext.java * Update ProcessingContext.java * fix collection query mapping
1 parent 9928cb6 commit 4dac27d

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

http-generator-core/src/main/java/io/avaje/http/generator/core/TypeMap.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -335,10 +335,10 @@ static class CollectionHandler implements TypeHandler {
335335
+ "("
336336
+ (isEnum
337337
? "qp -> " + handler.toMethod() + " qp)"
338-
: "PathTypeConversion::" + shortName)
338+
: "PathTypeConversion::as" + shortName)
339339
+ ", ";
340340

341-
this.toMethod = toMethod.replace("PathTypeConversion::String", "Object::toString");
341+
this.toMethod = toMethod.replace("PathTypeConversion::asString", "Object::toString");
342342
}
343343

344344
@Override

http-hibernate-validator/pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@
3636
<dependency>
3737
<groupId>io.avaje</groupId>
3838
<artifactId>avaje-http-api</artifactId>
39-
<version>1.22</version>
39+
<version>1.30</version>
4040
<scope>provided</scope>
4141
</dependency>
4242

4343
<dependency>
4444
<groupId>io.avaje</groupId>
4545
<artifactId>avaje-inject</artifactId>
46-
<version>8.13</version>
46+
<version>9.0-RC2</version>
4747
<scope>provided</scope>
4848
</dependency>
4949

tests/test-nima-jsonb/src/main/java/org/example/TestController.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package org.example;
22

33
import java.io.InputStream;
4+
import java.util.List;
45
import java.util.Set;
56

67
import io.avaje.http.api.Controller;
@@ -21,6 +22,11 @@ String paramMulti(Set<String> strings) {
2122
return strings.toString();
2223
}
2324

25+
@Get("/BoxCollection")
26+
String boxed(@QueryParam List<Long> l) {
27+
return l.toString();
28+
}
29+
2430
@Form
2531
@Get("/enumForm")
2632
String enumForm(String s, ServerType type) {

0 commit comments

Comments
 (0)