Skip to content

Commit

Permalink
Register String constructors for reflection
Browse files Browse the repository at this point in the history
Fixes #10873
  • Loading branch information
loicmathieu committed Sep 11, 2020
1 parent 6588419 commit ec0c7aa
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,10 @@ void build(BuildProducer<ReflectiveClassBuildItem> reflectiveClass,
for (AnnotationInstance deserializeInstance : index.getAnnotations(JSONB_TYPE_DESERIALIZER)) {
registerInstance(reflectiveClass, deserializeInstance);
}

// register String constructors for reflection as they may not have been properly registered by default
// see https://github.com/quarkusio/quarkus/issues/10873
reflectiveClass.produce(new ReflectiveClassBuildItem(true, false, false, "java.lang.String"));
}

private void registerInstance(BuildProducer<ReflectiveClassBuildItem> reflectiveClass, AnnotationInstance instance) {
Expand Down

0 comments on commit ec0c7aa

Please sign in to comment.