jamesnetherton opened a new issue, #5554: URL: https://github.com/apache/camel-quarkus/issues/5554
### Bug description An issue I stumbled upon while investigating https://github.com/apache/camel-quarkus/issues/5528. If you choose to use the `openapi-java` extension and have something like the following in the REST definition: ``` .get("/operation/spec/array/params") .param() .name("integer_array") .dataType("array") .arrayType("integer") .allowableValues("1", "2", "3") ``` Then an exception is thrown in native mode at runtime: ``` java.lang.IllegalStateException: java.lang.NoSuchMethodException: no such method: java.lang.Integer.valueOf(String)Integer/invokeStatic at org.apache.camel.openapi.RestOpenApiReader.convertAndSetItemsEnum(RestOpenApiReader.java:722) at org.apache.camel.openapi.RestOpenApiReader.defineSchemas(RestOpenApiReader.java:669) at org.apache.camel.openapi.RestOpenApiReader.doParseVerb(RestOpenApiReader.java:505) at org.apache.camel.openapi.RestOpenApiReader.doParseVerbs(RestOpenApiReader.java:443) at org.apache.camel.openapi.RestOpenApiReader.parse(RestOpenApiReader.java:258) at org.apache.camel.openapi.RestOpenApiReader.read(RestOpenApiReader.java:138) ``` From this logic: https://github.com/apache/camel/blob/main/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java#L504-L518 These types need registering for method reflection: https://github.com/apache/camel/blob/main/components/camel-openapi-java/src/main/java/org/apache/camel/openapi/RestOpenApiReader.java#L501-L518 The other types don't actually have a `valueOf` method so they fail even in JVM mode. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@camel.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org