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

SnappyCompressor/SnappyDecompressor JNI code uses wrong Exception class name

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Duplicate
    • 0.23.8
    • None
    • native
    • 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

              Unassigned Unassigned
              srosenberg Stan Rosenberg
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: