During test development I found case when internal event handler throws InternalException with description "Inconsistent suspend policy":
Exception in thread "JDI Internal Event Handler" com.sun.jdi.InternalException: Inconsistent suspend policy
at com.sun.tools.jdi.EventSetImpl.resume(EventSetImpl.java:764)
at com.sun.tools.jdi.EventSetImpl.build(EventSetImpl.java:635)
at com.sun.tools.jdi.EventQueueImpl.removeUnfiltered(EventQueueImpl.java:193)
at com.sun.tools.jdi.EventQueueImpl.removeInternal(EventQueueImpl.java:106)
at com.sun.tools.jdi.InternalEventHandler.run(InternalEventHandler.java:36)
at java.lang.Thread.run(Thread.java:619)
Test is attached.