[jbosstools-issues] [JBoss JIRA] Closed: (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.
Vlado Pakan (JIRA)
jira-events at lists.jboss.org
Wed Jun 29 09:45:24 EDT 2011
[ https://issues.jboss.org/browse/JBIDE-9079?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vlado Pakan closed JBIDE-9079.
------------------------------
Verified on jbdevstudio-product-linux-gtk-5.0.0.v201106241117R-H14-M2.
> 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