>>>>> Dimitris Vyzovitis writes:
>> I wrote a short program and tested it with 1.1.7, 1.2 (both with
>> green and native threads) on Solaris and with 1.1.7 (green threads
>> and native threads) and 1.2 native threads (not available yet) on Linux:
>> All show the same behavior -- the execution stops after show().
>>
Dimitris> yes, but why doesn't it stop with native threads on linux j117?
In my test case it stops!
I've attached my test program. I tested it with:
Linux 1.1.6v3 green threads
Linux 1.1.7v1a green threads
Linux 1.1.7v1a native threads
Linux 1.2 native threads
Solaris 1.1.7 green threads
Solaris 1.1.7 native threads
Solaris 1.2 green threads
Solaris 1.2 native threads2
The results of the modal test are the same with all VMs (including
1.1.7v1 native threads).
$ java DialogShow modal
MODAL TEST:
entering ExtendedDialogShow constructor
finished Dialog constructor
show modal Dialog <-- it blocks here
!!! hiding Dialog
after show
after setResizable
finished ExtendedDialogShow constructor
The results of the non-modal test are all the same too.
$ java DialogShow non-modal
NON-MODAL TEST:
entering ExtendedDialogShow constructor
finished Dialog constructor
show non-modal Dialog
after show
after setResizable
finished ExtendedDialogShow constructor
!!! hiding Dialog
The results are correct, if the dialog is modal 'show()' blocks.
Juergen
DialogShow.java