mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
THRIFT-1288. cpp: Allow typedefed exceptions in throws clauses
Patch: David Reiss git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1161271 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b68f16634a
commit
cff83579d7
@ -242,6 +242,7 @@ class t_generator {
|
||||
return out.str();
|
||||
}
|
||||
|
||||
public:
|
||||
/**
|
||||
* Get the true type behind a series of typedefs.
|
||||
*/
|
||||
|
@ -819,7 +819,7 @@ bool validate_throws(t_struct* throws) {
|
||||
const vector<t_field*>& members = throws->get_members();
|
||||
vector<t_field*>::const_iterator m_iter;
|
||||
for (m_iter = members.begin(); m_iter != members.end(); ++m_iter) {
|
||||
if (!(*m_iter)->get_type()->is_xception()) {
|
||||
if (!t_generator::get_true_type((*m_iter)->get_type())->is_xception()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user