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

Frame object could be created with negative insets under Solaris.

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 1.1.5
    • Fix Version/s: None
    • Component/s: client-libs
    • Labels:
    • Subcomponent:
    • CPU:
      sparc
    • OS:
      solaris_2.5

      Description



      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!!!
      -----------------------------------------------
      ======================================================================

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: