-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0
-
rc3
-
sparc
-
solaris_2.6
Name: asC58863 Date: 03/15/2000
This failure has been found during the JCK tests run and
happens on NT machine.
JDKs used: build 1.3.0rc2-U, 1.3.0rc2-V, 1.3.0rc2-W.
Here is the example demonstrating the bug:
------------------ otherTests.java -----------------
import javax.swing.SwingUtilities;
import java.awt.*;
public class otherTests {
public static void main(String argv[]) {
Button comp = new Button();
Frame pn = new Frame();
pn.add(comp);
pn.setVisible(true);
Rectangle bounds = comp.getBounds();
comp.getGraphics().create(bounds.x, bounds.y, bounds.width,
bounds.height).getClipBounds();
SwingUtilities.paintComponent(comp.getGraphics(), comp, pn,
bounds.x, bounds.y, bounds.width, bounds.height);
pn.dispose();
System.out.println("OKAY");
}
}
-------------- Output from the test -----------------
D:\home\ans\SwingUtilities>d:\home\java\bin\javac -d d:\home\ans\SwingUtilities otherTests.java
D:\home\ans\SwingUtilities>d:\home\java\bin\java -Xfuture otherTests
#
# An unknown exception code exception has been detected in native code outside the VM.
# Program counter=0x77f89041
#
------------------------------------------------------
This example is the minimized JCK test :
api/javax_swing/SwingUtilities/index.html#otherTests[SwingUtilities3036]
======================================================================
- relates to
-
JDK-4328857 docs should says: SwingUtilities.paintComponent() supports only lightweight c
-
- Resolved
-
-
JDK-4324047 SwingUtilities.paintComponent should ignore heavyweight components
-
- Closed
-