[
http://jira.jboss.com/jira/browse/JBSEAM-775?page=all ]
Gavin King updated JBSEAM-775:
------------------------------
Fix Version/s: 1.1.6.GA
Assignee: Gavin King
Agreed.
Seam should fail to startup if duplicate factory names are detected
-------------------------------------------------------------------
Key: JBSEAM-775
URL:
http://jira.jboss.com/jira/browse/JBSEAM-775
Project: JBoss Seam
Issue Type: Bug
Components: Core
Affects Versions: 1.1.0.GA
Environment: Any.
Reporter: Mike Quilleash
Assigned To: Gavin King
Fix For: 1.1.6.GA
When basing several components off a superclass with a @Factory annotation the @Factory
gets bound to the last component's @Name.
Init.addFactoryMethod(), Init.addFactoryMethodBinding() and Init.addFactoryValueBinding()
should all throw exceptions if something tries to insert an existing name into the map.
Would be nice to have @Factory in superclasses but I don't see a way of doing this as
it can't "tell" which component it should be calling.
--
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