Skip to content

Conversation

mfateev
Copy link
Contributor

@mfateev mfateev commented Jun 21, 2018

Added type adapter for Class objects to DataConverter

@mfateev mfateev requested a review from meiliang86 June 21, 2018 20:51
@Override
public void write(JsonWriter out, T value) throws IOException {
out.beginObject();
String className = value.getClass().getName();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be ((Class) value).getName();
value.getClass().getName() is always java.lang.Class
Let's add a DataConverter to test this directly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

@mfateev mfateev merged commit c458bfc into cadence-workflow:master Jun 25, 2018
@mfateev mfateev deleted the retry_data_converter branch June 25, 2018 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants