click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Finn Bock (JIRA)" <>
Subject [jira] Created: (CLK-713) Race condition in Menu.getHeadElements
Date Thu, 15 Jul 2010 21:02:50 GMT
Race condition in Menu.getHeadElements

                 Key: CLK-713
             Project: Click
          Issue Type: Bug
          Components: extras
            Reporter: Finn Bock
            Priority: Critical

Multi threads can access a cached Menu while it is being initialized. The Exception can be:

java.lang.ArrayIndexOutOfBoundsException: 2
        at java.util.ArrayList.add(

Initializing the menu in MenuFactory by calling menu.getHeadElements() seems to make the race
condition go away.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message