Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-9666

SnappyCompressor/SnappyDecompressor JNI code uses wrong Exception class name

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 0.23.8
    • Fix Version/s: None
    • Component/s: native
    • Labels:
      None

      Description

      SnappyCompressor.c and SnappyDecompressor.c use the macro THROW defined in org_apache_hadoop.h. The macro locates the exception class using FindClass.
      According to JNI spec., FindClass expects a fully-qualified class name using the '/' separator. Both of the above sources, erroneously pass 'Ljava/lang/InternalError' to THROW instead of the correct "java/lang/InternalError".

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                srosenberg Stan Rosenberg
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: