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

GetPrimitiveArrayCritical passed with hardcoded FALSE value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • jfx15
    • jfx11, 8
    • javafx

        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.

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

                Created:
                Updated:
                Resolved: