Program: 83460
Project: 83460
Buggy source:
@Override public <T extends Event>void dispatchEvent(T event,Object... objects){
  Class<? extends Event> type=event.getClass();
  PriorityQueue<Entry<IEventListener>> listenerEntryQueue=new PriorityQueue<Entry<IEventListener>>(16,new Comparator<Entry<IEventListener>>(){
    public int compare(    Entry<IEventListener> o1,    Entry<IEventListener> o2){
      return o2.priority - o1.priority;
    }
  }
);
  for (  Object object : objects) {
    Class<?> clz=object.getClass();
    Map<Object,List<Entry<IEventListener>>> objectListenerContainers=objectListenerContainersMap.get(type);
    if (objectListenerContainers == null)     return;
    List<Entry<IEventListener>> classListeners=objectListenerContainers.get(clz);
    List<Entry<IEventListener>> listeners=objectListenerContainers.get(object);
    if (listeners != null)     for (int i=0; i < listeners.size(); i++) {
      Entry<IEventListener> entry=listeners.get(i);
      if (entry.getValue() == null) {
        listeners.remove(i);
        i--;
      }
 else       listenerEntryQueue.add(entry);
    }
    if (classListeners != null)     for (int i=0; i < classListeners.size(); i++) {
      Entry<IEventListener> entry=classListeners.get(i);
      if (entry.getValue() == null) {
        listeners.remove(i);
        i--;
      }
 else       listenerEntryQueue.add(entry);
    }
  }
  while (event.interrupted) {
    Entry<IEventListener> entry=listenerEntryQueue.poll();
    IEventListener listener=entry.getValue();
    if (listener == null)     continue;
    listener.handleEvent(event);
  }
}

Fixed version (ground truth):
@Override public <T extends Event>void dispatchEvent(T event,Object... objects){
  Class<? extends Event> type=event.getClass();
  PriorityQueue<Entry<IEventListener>> listenerEntryQueue=new PriorityQueue<Entry<IEventListener>>(16,new Comparator<Entry<IEventListener>>(){
    public int compare(    Entry<IEventListener> o1,    Entry<IEventListener> o2){
      return o2.priority - o1.priority;
    }
  }
);
  for (  Object object : objects) {
    Class<?> clz=object.getClass();
    Map<Object,List<Entry<IEventListener>>> objectListenerContainers=objectListenerContainersMap.get(type);
    if (objectListenerContainers == null)     return;
    List<Entry<IEventListener>> classListeners=objectListenerContainers.get(clz);
    List<Entry<IEventListener>> listeners=objectListenerContainers.get(object);
    if (listeners != null)     for (int i=0; i < listeners.size(); i++) {
      Entry<IEventListener> entry=listeners.get(i);
      if (entry.getValue() == null) {
        listeners.remove(i);
        i--;
      }
 else       listenerEntryQueue.add(entry);
    }
    if (classListeners != null)     for (int i=0; i < classListeners.size(); i++) {
      Entry<IEventListener> entry=classListeners.get(i);
      if (entry.getValue() == null) {
        listeners.remove(i);
        i--;
      }
 else       listenerEntryQueue.add(entry);
    }
  }
  while (listenerEntryQueue.isEmpty() == false && event.isInterrupted() == false) {
    Entry<IEventListener> entry=listenerEntryQueue.poll();
    IEventListener listener=entry.getValue();
    if (listener == null)     continue;
    listener.handleEvent(event);
  }
}