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

Frame object could be created with negative insets under Solaris.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P4 P4
    • None
    • 1.1.5
    • client-libs
    • sparc
    • solaris_2.5



      Name: vsC58871 Date: 10/29/97


      Frame object could be created with negative insets under Solaris.
      The JCK-114a test, that fails due to this reason:
      api/java_awt/Frame/manual.html#DamageRepair

      Here is the example demonstrating the bug:

      ----------------Test.java---------------------
      import java.awt.*;

      public class Test{

          public static void main(String[] args){
      Frame one;
      for(int k=0;k<100;k++){
      one = new Frame();
      one.setBounds(100,100,60,60);
      one.setVisible(true);


      for (int i=0; i<10; i++) {
      if(one.getInsets().left < 0)
      System.out.println("Negative Insets!!!");
      one.setBounds(100+20*i,100+20*i,50+20*(i+1),50+20*(i+1));
      }

      one.dispose();
      }
      System.exit(0);
          }
      }

      -- The output under jdk1.1.5D ----------------
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      Negative Insets!!!
      -----------------------------------------------
      ======================================================================

            mbronsonsunw Mike Bronson (Inactive)
            vsizikov Vladimir Sizikov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: