You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Bob Schellink (JIRA)" <ji...@apache.org> on 2010/07/18 15:00:52 UTC
[jira] Resolved: (CLK-713) Race condition in Menu.getHeadElements
[ https://issues.apache.org/jira/browse/CLK-713?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bob Schellink resolved CLK-713.
-------------------------------
Assignee: Bob Schellink
Fix Version/s: 2.3.0-M1
Resolution: Fixed
Thanks Finn, your solution of invoking getHeadElements from getRootMenu looks good. I've committed to trunk.
> Race condition in Menu.getHeadElements
> --------------------------------------
>
> Key: CLK-713
> URL: https://issues.apache.org/jira/browse/CLK-713
> Project: Click
> Issue Type: Bug
> Components: extras
> Reporter: Finn Bock
> Assignee: Bob Schellink
> Priority: Critical
> Fix For: 2.3.0-M1
>
>
> 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(ArrayList.java:352)
> at org.apache.click.extras.control.Menu.getHeadElements(Menu.java:1077)
> at org.apache.click.util.PageImports.processControl(PageImports.java:37
> 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.