-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.5
-
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!!!
-----------------------------------------------
======================================================================