Skip to content

Commit

Permalink
Allow reflective access to Jaeger DTO classes' fields
Browse files Browse the repository at this point in the history
The Jaeger client uses GSON to unmarshall JSON messages containing
sampling configuration to Java objects. GSON uses reflection on the DTO
object to determine fields that match the properties in the JSON object.

by default, the ReflectiveClassBuildItem does not allow access to a
class' fields via reflection. This PR therefore explicitly enables it.

This should (finally) fix quarkusio#10402

Signed-off-by: Kai Hudalla <[email protected]>
  • Loading branch information
sophokles73 committed Mar 23, 2022
1 parent 7dcdbdb commit d6bffc0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ public ReflectiveClassBuildItem reflectiveClasses() {
"io.jaegertracing.internal.samplers.http.ProbabilisticSamplingStrategy",
"io.jaegertracing.internal.samplers.http.RateLimitingSamplingStrategy",
"io.jaegertracing.internal.samplers.http.SamplingStrategyResponse")
.finalFieldsWritable(true).build();
.fields(true)
.finalFieldsWritable(true)
.build();
}
}

0 comments on commit d6bffc0

Please sign in to comment.