From 51b2cdc20f938c11d4d844549488e1c33e513200 Mon Sep 17 00:00:00 2001 From: Gary Russell Date: Thu, 10 Aug 2023 11:44:19 -0400 Subject: [PATCH] Add ConfigFile Runtime Hint (for JAAS) See `Configuration.getConfiguration()` which can use reflection to create an instance of this class. --- .../java/org/springframework/kafka/aot/KafkaRuntimeHints.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spring-kafka/src/main/java/org/springframework/kafka/aot/KafkaRuntimeHints.java b/spring-kafka/src/main/java/org/springframework/kafka/aot/KafkaRuntimeHints.java index 683ba96bc2..abde73ff19 100644 --- a/spring-kafka/src/main/java/org/springframework/kafka/aot/KafkaRuntimeHints.java +++ b/spring-kafka/src/main/java/org/springframework/kafka/aot/KafkaRuntimeHints.java @@ -1,5 +1,5 @@ /* - * Copyright 2022 the original author or authors. + * Copyright 2022-2023 the original author or authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -198,6 +198,7 @@ public void registerHints(RuntimeHints hints, @Nullable ClassLoader classLoader) hints.proxies().registerJdkProxy(AopProxyUtils.completeJdkProxyInterfaces(Producer.class)); Stream.of( + "sun.security.provider.ConfigFile", "org.apache.kafka.streams.processor.internals.StreamsPartitionAssignor", "org.apache.kafka.streams.errors.DefaultProductionExceptionHandler", "org.apache.kafka.streams.processor.FailOnInvalidTimestamp",