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

java.awt.Dimension.setSize(double,double) does not work.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 1.2.0, 1.2.1
    • client-libs
    • generic, x86
    • generic, windows_95, windows_nt



      Name: diC59631 Date: 11/12/98


      The code in java.awt.Dimension (jdk1.2rc1) needs to be changed from:
       public void setSize(double width, double height) {
      width = (int) Math.ceil(width);
      height = (int) Math.ceil(height);
          }

      to:
       public void setSize(double width, double height) {
      this.width = (int) Math.ceil(width);
      this.height = (int) Math.ceil(height);
          }

      otherwise, the class data never gets changed.
      (Review ID: 42571)
      ======================================================================

            ehawkessunw Eric Hawkes (Inactive)
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: