Frame.getFrames() synchronized "weakFrames" object.
---
public static Frame[] getFrames()
{
int n = 0;
synchronized (weakFrames)
{
...
}
}
---
But noteFrame() method does not synchronized "weakFrames" object.
---
private static void noteFrame(Frame f)
{
weakFrames.add(new WeakReference(f));
}
---
Then sometimes ArrayIndexOutOfBoundsException occurred in Frame.getFrames()
method.
I think noteFrame() method should synchronized "weakFrames" object
---
private static void noteFrame(Frame f)
{
synchronized (weakFrames)
{
weakFrames.add(new WeakReference(f));
}
}
---
--
Summary: ArrayIndexOutOfBoundsException occurred in
Frame.getFrames()
Product: classpath
Version: 0.92
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: awt
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: freebeans at xqb dot biglobe dot ne dot jp
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29238
_______________________________________________
Bug-classpath mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-classpath