Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion core/src/main/java/org/apache/calcite/avatica/Meta.java
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,10 @@ public static CursorFactory fromProto(Common.CursorFactory proto) {

if (proto.hasField(CLASS_NAME_DESCRIPTOR)) {
try {
clz = Class.forName(proto.getClassName());
// Resolve without initializing: a server parsing this from an untrusted
// client must not run the named class's static initializer.
clz = Class.forName(proto.getClassName(), false,
CursorFactory.class.getClassLoader());
} catch (ClassNotFoundException e) {
throw new RuntimeException(e);
}
Expand Down
Loading