[jboss-jira] [JBoss JIRA] Commented: (JGRP-643) ClassConfigurator.getInstance() not thread safe
Bela Ban (JIRA)
jira-events at lists.jboss.org
Sat Dec 8 08:45:51 EST 2007
[ http://jira.jboss.com/jira/browse/JGRP-643?page=comments#action_12391192 ]
Bela Ban commented on JGRP-643:
-------------------------------
Why is this an issue ? The static method is called only *once* with init=true, by the ProtocolStack. All other calls are *NOT* initializing it.
So there is no concurrent invocation of this method with init=true
> ClassConfigurator.getInstance() not thread safe
> -----------------------------------------------
>
> Key: JGRP-643
> URL: http://jira.jboss.com/jira/browse/JGRP-643
> Project: JGroups
> Issue Type: Bug
> Reporter: Michael Newcomb
> Assigned To: Bela Ban
> Priority: Minor
> Fix For: 2.7
>
>
> Creating 2 or more JChannels simultaneously could result in multiple ClassConfigurators being created and inited at once or a ClassConfigurator being used before it has been inited.
> Recommend synchronizing the getInstance() method.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list