Specification for Toolkit.isModalityTypeSupported() method contains the following statement:
* If a dialog with unsupported modality type is created, then
* <code>Dialog.ModalityType.MODELESS</code> is used instead.
However, currently this is not implemented. For example, if a dialog with DOCUMENT_MODAL modality type is created with MToolkit (which doesn't support this type of modality), this dialog still is modal.
A test that can be used to reproduce the bug is attached.