tisonkun commented on code in PR #20115:
URL: https://github.com/apache/pulsar/pull/20115#discussion_r1187185878


##########
pulsar-functions/instance/src/main/java/org/apache/pulsar/functions/source/TopicSchema.java:
##########
@@ -49,8 +53,13 @@ public class TopicSchema {
     private final Map<String, Schema<?>> cachedSchemas = new HashMap<>();
     private final PulsarClient client;
 
-    public TopicSchema(PulsarClient client) {
+    private final ClassLoader functionsClassloader;
+
+    public TopicSchema(PulsarClient client, ClassLoader functionsClassloader) {
         this.client = client;
+        this.functionsClassloader = AccessController.doPrivileged(

Review Comment:
   This method (as well as `AccessController`) is deprecated to be removed 
since JDK 17. We should find other way or just omit the warning.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to