Skip to content
This repository was archived by the owner on Nov 11, 2022. It is now read-only.

Commit 6f2fc72

Browse files
committed
Merge pull request #142 from davorbonaci/backport-20
Backport apache/beam#20
2 parents c7ac56b + c679468 commit 6f2fc72

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sdk/src/main/java/com/google/cloud/dataflow/sdk/util/CoderUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ private Class<?> getClassForId(String id) {
286286
// com.google.cloud.dataflow.sdk.coders. We do this via creating
287287
// the class object so that class loaders have a chance to get
288288
// involved -- and since we need the class object anyway.
289-
return Class.forName("com.google.cloud.dataflow.sdk.coders." + id);
289+
return Class.forName(Coder.class.getPackage().getName() + "." + id);
290290
} catch (ClassNotFoundException e) {
291291
throw new RuntimeException("Unable to convert coder ID " + id + " to class", e);
292292
}

0 commit comments

Comments
 (0)