-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.2.0
-
sparc
-
solaris_2.5
Name: mgC56079 Date: 10/14/97
--- Here is the test ----
import java.awt.*;
public class CustomCursor {
public static void main(String argv[]) {
Frame f=new Frame();
f.setSize(200,200);
f.setVisible(true);
Toolkit tk=Toolkit.getDefaultToolkit();
Image im=tk.getImage("img.gif");
Cursor cur;
System.out.println(tk.getBestCursorSize(16,16));
cur=tk.createCustomCursor(im,new Point(0,0),"cus");
f.setCursor(cur);
}
}
-------
img.gif contains some file in GIF format.
Works okay under Win95.
Coredumps under solaris (I tried the builds jdk1.2N-JDK1.2P):
% java CustomCursor
FATAL ERROR: native method used a wrong field ID
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java:472)
SIGABRT 6* abort (generated by abort(3) routine)
si_signo [6]: SIGABRT 6* abort (generated by abort(3) routine)
si_errno [0]: Error 0
si_code [-1]: SI_LWP [pid: 24420, uid: 300]
stackbase=EF102000, stackpointer=EF1015F8
Full thread dump:
"AWT-Motif" (TID:0xee303908, sys_thread_t:0x3c3710, state:R) prio=5 *current thread*
at sun.awt.motif.MToolkit.run(Native Method)
at java.lang.Thread.run(Thread.java:472)
"AWT-Input" (TID:0xee303930, sys_thread_t:0x3c3608, state:MW) prio=5
at sun.awt.motif.InputThread.run(Native Method)
"AWT-EventQueue-0" (TID:0xee3039c8, sys_thread_t:0x3ace18, state:CW) prio=5
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:309)
at java.awt.EventQueue.getNextEvent(EventQueue.java:114)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:44)
"Finalizer" (TID:0xee300370, sys_thread_t:0x9d7e8, state:CW) prio=8
at java.lang.Object.wait(Native Method)
at java.lang.Ref$Queue.remove(Ref.java:232)
at java.lang.Ref$Queue.remove(Ref.java:245)
at java.lang.Finalizer$FinalizerThread.run(Finalizer.java:130)
"Ref handler" (TID:0xee300420, sys_thread_t:0x9ab50, state:CW) prio=10
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:309)
at java.lang.Ref$RefHandler.run(Ref.java:269)
"Async Garbage Collector" (TID:0xee3001e8, sys_thread_t:0x6e400, state:CW) prio=1
"Idle thread" (TID:0xee300230, sys_thread_t:0x671d8, state:R) prio=0
"Clock" (TID:0xee300088, sys_thread_t:0x670d0, state:CW) prio=12
"main" (TID:0xee3000b0, sys_thread_t:0x209f8, state:MW) prio=5
at sun.awt.motif.X11CustomCursor.queryBestCursor(Native Method)
at sun.awt.motif.X11CustomCursor.getBestCursorSize(X11CustomCursor.java:52)
at sun.awt.motif.MToolkit.getBestCursorSize(MToolkit.java:336)
at CustomCursor.main(CustomCursor.java:11)
Monitor Cache Dump:
sun.awt.motif.MToolkit@EE303790/EE36D528: owner "AWT-Motif" (0x3c3710, 1 entry)
Waiting to enter:
"AWT-Input"
"main"
Registered Monitor Dump:
utf8 hash table: <unowned>
JNI pinning lock: <unowned>
JNI global reference lock: <unowned>
BinClass lock: <unowned>
Class linking lock: <unowned>
Code rewrite lock: <unowned>
Heap lock: <unowned>
Monitor IO lock: <unowned>
Child death monitor: <unowned>
Event monitor: <unowned>
I/O monitor: <unowned>
Alarm monitor: <unowned>
Waiting to be notified:
"Clock"
Sbrk lock: <unowned>
Monitor cache expansion lock: <unowned>
Thread queue lock: <unowned>
Monitor registry: owner "AWT-Motif" (0x3c3710, 1 entry)
Thread Alarm Q:
sys_thread_t 0x6e400 [Timeout in 763 ms]
Abort
======================================================================