Name: atR10191 Date: 08/09/2002
It seems that Graphics.setXORMode() invocation can affect the following
Graphics.fillRoundRect() call:
An example below prints nothing ("OKAY" expected).
Note that result of test run is not stable:
my colleague reproduced the failure under sparc's 1.4.2 and linux, but
could not reproduced this under sparc's 1.3 and even 1.4.0.
I'v managed to achive core dump several times in the last year (which I
put below the test's source), but now I have not.
============ Test26.java ==============================================
import java.awt.*;
public class Test26 {
public static void main(String[] args) {
Frame frm = new Frame();
frm.show();
Graphics g = frm.getGraphics();
g.setXORMode(Color.magenta);
g.fillRoundRect(0, -100, 0, Integer.MAX_VALUE,Integer.MIN_VALUE + 1,-100);
System.out.println("OKAY");
System.exit(0);
}
}
======== end of Test26.java ==========================================
======== there is no output ==========================================
(without g.setXORMode() invocation the output is
"OKAY", which is the expected result.)
======================================================================
======== core dump ===================================================
An unexpected exception has been detected in native code outside the VM.
Unexpected Signal : 11 occurred at PC=0xFDEC5250
Function=_XtSortPerDisplayList+0xC4
Library=/usr/lib/libXt.so.4
Current Java thread:
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java:539)
Dynamic libraries:
0x10000 java
0xff350000 /usr/lib/libthread.so.1
0xff390000 /usr/lib/libdl.so.1
0xff200000 /usr/lib/libc.so.1
0xff330000 /usr/platform/SUNW,Ultra-5_10/lib/libc_psr.so.1
0xfe000000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/client/l
ibjvm.so
0xff2d0000 /usr/lib/libCrun.so.1
0xff1e0000 /usr/lib/libsocket.so.1
0xff100000 /usr/lib/libnsl.so.1
0xff0d0000 /usr/lib/libm.so.1
0xff300000 /usr/lib/libw.so.1
0xff0b0000 /usr/lib/libmp.so.2
0xff080000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/native_t
hreads/libhpi.so
0xff050000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libverif
y.so
0xff020000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libjava.
so
0xfe7e0000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libzip.s
o
0xfe5b0000 /usr/lib/locale/ru_RU.KOI8-R/ru_RU.KOI8-R.so.2
0xf1900000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libawt.s
o
0xfe450000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libmlib_
image.so
0xfdf90000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/motif21/
libmawt.so
0xf1680000 /usr/lib/libXm.so.4
0xfde90000 /usr/lib/libXt.so.4
0xfc7d0000 /usr/lib/libXext.so.0
0xfc7b0000 /usr/openwin/lib/libXtst.so.1
0xf1580000 /usr/lib/libX11.so.4
0xfc4a0000 /usr/openwin/lib/libdps.so.5
0xfc480000 /usr/lib/libSM.so.6
0xfc450000 /usr/lib/libICE.so.6
0xfc420000 /usr/openwin/lib/libdga.so.1
0xf1480000 /set/jdk-builds/JDK1.4.0beta2-b86/solaris/jre/lib/sparc/libfontm
anager.so
0xfc790000 /usr/openwin/lib/locale/common/xlibi18n.so.2
0xfa3c0000 /usr/openwin/lib/locale/common/ximlocal.so.2
Local Time = Wed Nov 21 18:18:56 2001
Elapsed Time = 2
#
# The exception above was detected in native code outside the VM
#
# Java VM: Java HotSpot(TM) Client VM (1.4.0-rc-b86 mixed mode)
#
# An error report file has been saved as hs_err_pid9548.log.
# Please refer to the file for further information.
#
Abort (core dumped)
================================================================================
======================================================================