Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8238249

GetPrimitiveArrayCritical passed with hardcoded FALSE value

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved
    • P3
    • Resolution: Fixed
    • jfx11, 8
    • jfx15
    • javafx

    Backports

      Description

        The following call to GetPrimitiveArrayCritical in jpegloader.c is misleading:

                   jboolean iscopy = FALSE;
                    jbyte *body = (*env)->GetPrimitiveArrayCritical(env, barray, &iscopy);

        It looks like we want to pass "FALSE" to the isCopy parameter of GetPrimitiveArrayCritical, while this field is actually set by the VM when it informs the caller whether a copy is made or not. The jscopy parameter is not used outside this scope.

        Attachments

          Issue Links

            Activity

              People

                jvos Johan Vos
                jvos Johan Vos
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: