[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-9079) Custom seam component can extend any built-in component specifying the name of one of the built in components on the custom implementation.
Alexey Kazakov (JIRA)
jira-events at lists.jboss.org
Mon Jun 6 14:40:59 EDT 2011
Custom seam component can extend any built-in component specifying the name of one of the built in components on the custom implementation.
-------------------------------------------------------------------------------------------------------------------------------------------
Key: JBIDE-9079
URL: https://issues.jboss.org/browse/JBIDE-9079
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: Seam
Affects Versions: 3.2.0.Final
Reporter: Alexey Kazakov
Assignee: Alexey Kazakov
Fix For: 3.3.0.M2
User can specify a custom component with the same name as any built-in component. We should mark @Name("...") as duplicate only if a few custom components specify the same name.
EXECUTE: Create a Seam Web Project.
EXECUTE: Create:
{code}
package ...
import static org.jboss.seam.ScopeType.SESSION;
import org.jboss.seam.annotations.Name;
import org.jboss.seam.annotations.Scope;
import org.jboss.seam.annotations.Startup;
import org.jboss.seam.annotations.intercept.BypassInterceptors;
import org.jboss.seam.international.StatusMessages;
import org.jboss.seam.security.Identity;
@Name("org.jboss.seam.security.identity")
@Scope(SESSION)
@BypassInterceptors
@Startup
public class CustomIdentity extends Identity {
}
{code}
EXECUTE: Save the file.
{color:red}FAILURE:{color} 'Duplicate component name: "org.jboss.seam.security.identity"' error marker appears.
{color:green}ASSERT:{color} No error marker on @Name("org.jboss.seam.security.identity") appears.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list