Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-16578

NativeLibrary#getProcessID() does not handle `UnsatisfiedLinkError`

    XMLWordPrintableJSON

Details

    Description

      NativeLibrary#getProcessID() does not handle `UnsatisfiedLinkError` (derived from Error, not Exception) as the other native methods do. Therefore, it can never return -1 when it fails for this reason, and can break callers that would otherwise be able to handle the situation gracefully. Most other methods in the class do this, but this one is missing the handling of this error.

      Attachments

        1. native-library-fix.patch
          0.6 kB
          Doug Rohrer

        Activity

          People

            drohrer Doug Rohrer
            drohrer Doug Rohrer
            Doug Rohrer
            Benjamin Lerer, David Capwell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: