* conditions
*/
void handleAWTEvent() {
WakeupOnAWTEvent awtConds[] = (WakeupOnAWTEvent [])
wakeupOnAWTEvent.toArray();
AWTEvent events[];
int eventSize = wakeupOnAWTEvent.arraySize();
int awtBufferSize;
synchronized (awtEventsBuffer) {
events = (AWTEvent []) awtEventsBuffer.toArray();
awtBufferSize = awtEventsBuffer.size();
awtEventsBuffer.clear();
}
WakeupOnAWTEvent awtCond;
AWTEvent evt;
int id;
for (int i=0; i < eventSize; i++) {
awtCond = awtConds[i];
for (int j=0; j < awtBufferSize; j++) {
evt = events[j];
id = evt.getID();
if (awtCond.AwtId != 0) {
if (awtCond.AwtId == id) {
// XXXX: how do we clone this event (do we need to?)
// Bug: 4181321