Skip to content

JAVA-833: Improve message when a nested type can't be serialized.#555

Merged
olim7t merged 1 commit into
2.1from
java833
Feb 23, 2016
Merged

JAVA-833: Improve message when a nested type can't be serialized.#555
olim7t merged 1 commit into
2.1from
java833

Conversation

@olim7t
Copy link
Copy Markdown
Contributor

@olim7t olim7t commented Dec 10, 2015

Throw an exception instead of propagating null back. I also changed the base message to avoid repeating the same thing twice when the wrong type is the root type.

This does not need to be merged in 3.0.

@olim7t olim7t added this to the 2.1.10 milestone Dec 10, 2015
@adutra
Copy link
Copy Markdown
Contributor

adutra commented Dec 10, 2015

👍 Very elegant solution to get a proper error message for collections of unknown elements.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Would be good to use @throws annotation here since this is an unchecked exception.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

That's a regular comment though, not a javadoc (the method is package-private).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ah didn't notice that, in that case it definitely isn't needed then :)

olim7t added a commit that referenced this pull request Feb 23, 2016
JAVA-833: Improve message when a nested type can't be serialized.
@olim7t olim7t merged commit ce32b11 into 2.1 Feb 23, 2016
@olim7t olim7t deleted the java833 branch February 23, 2016 16:42
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
Sfurti-yb pushed a commit to yugabyte/cassandra-java-driver that referenced this pull request Dec 8, 2023
[apache#555]

Signed-off-by: Mark Paluch <mpaluch@vmware.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants