Skip to content

Commit

Permalink
Use Function class loader to resolve function types (#1699)
Browse files Browse the repository at this point in the history
  • Loading branch information
srkukarni authored and sijie committed May 1, 2018
1 parent 600b55d commit fd576ae
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -128,7 +128,7 @@ public void close() throws Exception {

private void setupSerde() throws ClassNotFoundException {

Class<?> typeArg = Class.forName(this.pulsarConfig.getTypeClassName());
Class<?> typeArg = Thread.currentThread().getContextClassLoader().loadClass(this.pulsarConfig.getTypeClassName());
if (Void.class.equals(typeArg)) {
throw new RuntimeException("Input type of Pulsar Function cannot be Void");
}
Expand Down

0 comments on commit fd576ae

Please sign in to comment.