cushon commented on code in PR #25578:
URL: https://github.com/apache/beam/pull/25578#discussion_r1113546599


##########
sdks/java/core/src/main/java/org/apache/beam/sdk/schemas/utils/SelectByteBuddyHelpers.java:
##########
@@ -177,7 +178,9 @@ static RowSelector createRowSelector(SchemaAndDescriptor 
schemaAndDescriptor) {
       return builder
           .visit(new 
AsmVisitorWrapper.ForDeclaredMethods().writerFlags(ClassWriter.COMPUTE_FRAMES))
           .make()
-          .load(Row.class.getClassLoader(), 
ClassLoadingStrategy.Default.INJECTION)
+          .load(
+              
ReflectHelpers.findClassLoader(schemaAndDescriptor.getClass().getClassLoader()),
+              getClassLoadingStrategy(schemaAndDescriptor.getClass()))

Review Comment:
   I'm not sure if we want the change to use `schemaAndDescriptor.getClass()` 
instead of `Row.class`, or if this should also be reverted



-- 
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