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

Cleanup native AbstractSurface methods getRGBImpl, setRGBImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • jfx23
    • jfx23
    • javafx
    • b26

        Code inspection has revealed cleanup items in the native getRGBImpl and setRGBImpl methods of com.sun.pisces.AbstractSurface (in JAbstractSurface.c).

        There is a missing check for "offset < 0" that should be added to the list of checks near the beginning of the two methods. The Java side already checks for this case before calling the native method, but should be checked in the native code as well. Additionally, dstX and dstY in getRGBImpl, and srcX and srcY in setRGBImpl should be changed to "const" variables, since we rely on them being non-negative.

              arapte Ambarish Rapte
              kcr Kevin Rushforth
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: