Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Patch Available
Description
In several places, the java generator does things like
// Most existing Thrift code does not use isset or optional/required,
// so we treat "default" fields as required.
bool is_optional = (*m_iter)->get_req() == t_field::T_OPTIONAL;
but it doesn't do so consistently. This replaces the remaining == REQUIRED checks with != OPTIONAL to also include fields in the DEFAULT state.
Attachments
Attachments
Issue Links
- blocks
-
CASSANDRA-308 Thrift client forwarding the null keys to the servers
- Resolved