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

Duplicate assignment in JPEGMetadata.mergeStandardDimensionNode

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P5 P5
    • tbd
    • 17, 21, 22, 23
    • client-libs
    • None

      There is suspicious duplicate assignment in the com.sun.imageio.plugins.jpeg.JPEGMetadata#mergeStandardDimensionNode method, which is highlighted by IntelliJ IDEA:

                          jfif.Xdensity = p.x;
                          jfif.Xdensity = p.y;

      https://github.com/openjdk/jdk/blob/master/src/java.desktop/share/classes/com/sun/imageio/plugins/jpeg/JPEGMetadata.java#L1928

      Should it be jfif.Ydensity?

            jdv Jayathirth D V
            aturbanov Andrey Turbanov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: