The Webbug test failed on Merlin B71.
OS's= WinNT, Sol6, sol9
testsuite=/sqesvr.eng/st3/webbug/testbase/src/webbug-test/classes-awt/awt_4147957/
source=awt_4147957.java
TEST CODE
import java.awt.*;
import java.awt.image.*;
import java.awt.geom.*;
public class awt_4147957 extends Frame{
public static void main (String [] args){
new awt_4147957();
}
public awt_4147957(){
setSize(200,200);
show();
validate();
}
public void paint(Graphics g){
Rectangle r1 = new Rectangle(0,0,100,100);
Rectangle r2 = new Rectangle(200,200,20,20);
Rectangle r3 = r1.intersection(r2);
System.out.println("intersect :(" + (int)r3.getX() + "," + (int)r3.getY() + "," + (int)r3.getWidth() + "," + (int)r3.getHeight()
+ ")" );
g.setClip(r3);
String s1 = new String("(0,0,0,0)");
Rectangle r4 = g.getClipBounds();
String s2 = new String("(" + (int)r4.getX() + "," + (int)r4.getY() + "," + (int)r4.getWidth() + "," + (int)r4.getHeight() + ")");
if (s2.equals(s1)) {
System.out.println("Problem fixed.");
System.exit(0);
}
System.out.println("Problem is not fixed.");
System.exit(1);
}
}
---------------------------------------------------------------
TEST RESULTS WITH B71
intersect :(200,200,-100,-100)
Problem is not fixed.
--------------------------------------------------------------
TEST RESULTS WITH B62
intersect :(0,0,0,0)
Problem Fixed.
IMP: Webbug are not tested from B64 to B70(Milestone once) , However later I tested on B69 and B70 It is failing.