Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-2157

generated code would cause ClassCastException

    XMLWordPrintableJSON

    Details

      Description

      Looking at the thrift generated code for cassandra, i'm seeing

      msg = (org.apache.thrift.TBase)new org.apache.thrift.TApplicationException(org.apache.thrift.TApplicationException.INTERNAL_ERROR, e.getMessage());

      as seen here

      https://git-wip-us.apache.org/repos/asf?p=cassandra.git;a=blob;f=interface/thrift/gen-java/org/apache/cassandra/thrift/Cassandra.java;h=837acfc0e964249fd62720420e8f1f85d966f1a3;hb=8f202895ab9e17c3d6bd4965924fd5f1ffc27f94#l6095

      i don't see how TApplicationException can be cast to TBase, and so i'd expect a ClassCastException there.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jsirois John Sirois
                Reporter:
                dbrosius David Brosius
              • Votes:
                3 Vote for this issue
                Watchers:
                11 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: