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

Remove outdated reference to JDK 1.1 in the spec of BufferedImage.TYPE_INT_ARGB

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Unresolved
    • Icon: P5 P5
    • 26
    • client-libs
    • None
    • 2d

      Summary

      The following paragraph in the specification of BufferedImage.TYPE_INT_ARGB appears obsolete and unnecessary:

      When this type is used as the {@code imageType} argument to a {@code BufferedImage} constructor, the created image is consistent with images created in the JDK 1.1 and earlier releases.

      Problem

      The mention of earlier JDK 1.1 versions is no longer relevant and provides no useful information for current or future implementations.

      Solution

      The reference to "JDK 1.1 and earlier releases" was removed from the BufferedImage.TYPE_INT_ARGB spec.

      Specification

       --- a/src/java.desktop/share/classes/java/awt/image/BufferedImage.java
       +++ b/src/java.desktop/share/classes/java/awt/image/BufferedImage.java
      
        @@ -100,10 +100,7 @@ public class BufferedImage extends java.awt.Image
            * Represents an image with 8-bit RGBA color components packed into
            * integer pixels.  The image has a {@code DirectColorModel}
            * with alpha. The color data in this image is considered not to be
      -     * premultiplied with alpha.  When this type is used as the
      -     * {@code imageType} argument to a {@code BufferedImage}
      -     * constructor, the created image is consistent with images
      -     * created in the JDK1.1 and earlier releases.
      +     * premultiplied with alpha.
            */
         public static final int TYPE_INT_ARGB = 2;

            serb Sergey Bylokhov
            serb Sergey Bylokhov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated: