Skip to content

Commit

Permalink
Merge branch '3.3.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
snicoll committed Dec 23, 2024
2 parents 9eb04c3 + 0035569 commit d782e76
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@

import kotlin.jvm.JvmClassMappingKt;
import kotlin.reflect.KClass;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

import org.springframework.aot.hint.ExecutableMode;
import org.springframework.aot.hint.MemberCategory;
Expand Down Expand Up @@ -59,6 +61,8 @@
*/
public class BindableRuntimeHintsRegistrar implements RuntimeHintsRegistrar {

private static final Log logger = LogFactory.getLog(BindableRuntimeHintsRegistrar.class);

private final Bindable<?>[] bindables;

/**
Expand Down Expand Up @@ -89,7 +93,12 @@ public void registerHints(RuntimeHints hints, ClassLoader classLoader) {
*/
public void registerHints(RuntimeHints hints) {
for (Bindable<?> bindable : this.bindables) {
new Processor(bindable).process(hints.reflection());
try {
new Processor(bindable).process(hints.reflection());
}
catch (Exception ex) {
logger.debug("Skipping hints for " + bindable, ex);
}
}
}

Expand Down

0 comments on commit d782e76

Please sign in to comment.