String msg = "FIXME: can't be implemented without weak references"; throw new UnsupportedOperationException(msg);
int n = 0; synchronized (weakFrames) { Iterator i = weakFrames.iterator(); while (i.hasNext()) { WeakReference wr = (WeakReference) i.next(); if (wr.get() != null) ++n; } if (n == 0) return new Frame[0]; else { Frame[] frames = new Frame[n]; n = 0; i = weakFrames.iterator(); while (i.hasNext()) { WeakReference wr = (WeakReference) i.next(); if (wr.get() != null) frames[n++] = (Frame) wr.get(); } return frames; } }
getFrames(){  //Frame[] array = new Frames[frames.size()];  //return frames.toArray(array);  String msg = "FIXME: can't be implemented without weak references";  throw new UnsupportedOperationException(msg);}