In JacksonCodeGenerator at line 284, the check passes, but set is the name of a field rather than a method prefix.
record ExampleRequestBody(boolean required, boolean set) {}
Stack Trace
```
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0
at org.jboss.jandex.MethodInfo.parameterType(MethodInfo.java:180)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator$FieldSpecs.fieldType(JacksonCodeGenerator.java:285)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator$FieldSpecs.(JacksonCodeGenerator.java:271)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator.fieldSpecsFromField(JacksonCodeGenerator.java:235)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonSerializerFactory.serializeFields(JacksonSerializerFactory.java:224)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonSerializerFactory.serializeObjectData(JacksonSerializerFactory.java:217)
at io.quarkus.resteasy.reactive.jacployment.processor.JacksonSerializerFactory.create(JacksonSerializerFactory.java:138)actory.java:200)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.ResteasyReactiveJacksonProcessor.handleEndpointParams(ResteasyReactiveJacksonProcessor.java:419)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
at java.base/java.lang.Thread.run(Thread.java:1575)
at org.jboss.threads.JBossThread.run(JBossThread.java:499)
```
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of uname -a or ver
No response
Output of java -version
openjdk version "23.0.1" 2024-10-15 OpenJDK Runtime Environment Homebrew (build 23.0.1) OpenJDK 64-Bit Server VM Homebrew (build 23.0.1, mixed mode, sharing)
Quarkus version or git rev
No response
Build tool (ie. output of mvnw --version or gradlew --version)
Describe the bug
When updating from version 3.15.1 to 3.16.2, the build fails due to the property:
quarkus.rest.jackson.optimization.enable-reflection-free-serializers=true.
In JacksonCodeGenerator at line 284, the check passes, but
set
is the name of a field rather than a method prefix.record ExampleRequestBody(boolean required, boolean set) {}
Stack Trace
``` Caused by: java.lang.ArrayIndexOutOfBoundsException: Index 0 out of bounds for length 0 at org.jboss.jandex.MethodInfo.parameterType(MethodInfo.java:180) at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator$FieldSpecs.fieldType(JacksonCodeGenerator.java:285) at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator$FieldSpecs.(JacksonCodeGenerator.java:271)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonCodeGenerator.fieldSpecsFromField(JacksonCodeGenerator.java:235)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonSerializerFactory.serializeFields(JacksonSerializerFactory.java:224)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.JacksonSerializerFactory.serializeObjectData(JacksonSerializerFactory.java:217)
at io.quarkus.resteasy.reactive.jacployment.processor.JacksonSerializerFactory.create(JacksonSerializerFactory.java:138)actory.java:200)
at io.quarkus.resteasy.reactive.jackson.deployment.processor.ResteasyReactiveJacksonProcessor.handleEndpointParams(ResteasyReactiveJacksonProcessor.java:419)
at java.base/java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:733)
at io.quarkus.deployment.ExtensionLoader$3.execute(ExtensionLoader.java:856)
at io.quarkus.builder.BuildContext.run(BuildContext.java:256)
at org.jboss.threads.ContextHandler$1.runWith(ContextHandler.java:18)
at org.jboss.threads.EnhancedQueueExecutor$Task.doRunWith(EnhancedQueueExecutor.java:2675)
at org.jboss.threads.EnhancedQueueExecutor$Task.run(EnhancedQueueExecutor.java:2654)
at org.jboss.threads.EnhancedQueueExecutor.runThreadBody(EnhancedQueueExecutor.java:1627)
at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1594)
at java.base/java.lang.Thread.run(Thread.java:1575)
at org.jboss.threads.JBossThread.run(JBossThread.java:499)
```
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
openjdk version "23.0.1" 2024-10-15 OpenJDK Runtime Environment Homebrew (build 23.0.1) OpenJDK 64-Bit Server VM Homebrew (build 23.0.1, mixed mode, sharing)
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response