bug-classpath
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug awt/29238] New: ArrayIndexOutOfBoundsException occurred in Frame.ge


From: freebeans at xqb dot biglobe dot ne dot jp
Subject: [Bug awt/29238] New: ArrayIndexOutOfBoundsException occurred in Frame.getFrames()
Date: 26 Sep 2006 14:23:46 -0000

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]