Uploaded image for project: 'Phoenix'
  1. Phoenix
  2. PHOENIX-3291

Do not throw return value of Throwables#propagate call

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.9.0, 4.8.1
    • None
    • None

    Description

      Several places in the code are doing the following which is wrong:

      throw Throwables.propagate(e);
      

      This seems to get rid of any stack trace. Instead, it should be:

      Throwables.propagate(e);
      throw new IllegalStateException(); // won't happen as above call throws
      

      This preserves the stack trace.

      Attachments

        1. PHOENIX-3291.patch
          5 kB
          James R. Taylor

        Activity

          People

            jamestaylor James R. Taylor
            jamestaylor James R. Taylor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: