You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org> on 2009/11/11 12:03:55 UTC
[jira] Created: (MNG-4436) [regression] Singleton components can
get instantianted multiple times
[regression] Singleton components can get instantianted multiple times
----------------------------------------------------------------------
Key: MNG-4436
URL: http://jira.codehaus.org/browse/MNG-4436
Project: Maven 2
Issue Type: Bug
Affects Versions: 3.0-alpha-3
Reporter: Benjamin Bentmann
As Igor discovered, the changes made for MNG-4429 caused a regression regarding lookup of singleton components. In detail, a scenario like
{code:java}
/** @component */
private Component singleton1;
/** @component roleHint="default" */
private Component singleton2;
{code}
will get two different instances of the same singleton component.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (MNG-4436) [regression] Singleton components can
get instantianted multiple times
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=197953#action_197953 ]
Benjamin Bentmann commented on MNG-4436:
----------------------------------------
To be more precise, this is a regression in Maven 3.x. The bug is present in all released versions of Maven 2.x
> [regression] Singleton components can get instantianted multiple times
> ----------------------------------------------------------------------
>
> Key: MNG-4436
> URL: http://jira.codehaus.org/browse/MNG-4436
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 3.0-alpha-3
> Reporter: Benjamin Bentmann
>
> As Igor discovered, the changes made for MNG-4429 caused a regression regarding lookup of singleton components. In detail, a scenario like
> {code:java}
> /** @component */
> private Component singleton1;
> /** @component roleHint="default" */
> private Component singleton2;
> {code}
> will get two different instances of the same singleton component.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (MNG-4436) [regression] Singleton components can get
instantianted multiple times
Posted by "Benjamin Bentmann (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-4436?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Benjamin Bentmann closed MNG-4436.
----------------------------------
Resolution: Fixed
Fix Version/s: 3.0-alpha-4
Assignee: Benjamin Bentmann
Fixed in [r834989|http://svn.apache.org/viewvc?view=revision&revision=834989] by updating to plexus:1.5.1.
> [regression] Singleton components can get instantianted multiple times
> ----------------------------------------------------------------------
>
> Key: MNG-4436
> URL: http://jira.codehaus.org/browse/MNG-4436
> Project: Maven 2
> Issue Type: Bug
> Affects Versions: 3.0-alpha-3
> Reporter: Benjamin Bentmann
> Assignee: Benjamin Bentmann
> Fix For: 3.0-alpha-4
>
>
> As Igor discovered, the changes made for MNG-4429 caused a regression regarding lookup of singleton components. In detail, a scenario like
> {code:java}
> /** @component */
> private Component singleton1;
> /** @component roleHint="default" */
> private Component singleton2;
> {code}
> will get two different instances of the same singleton component.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira