[weld-issues] [JBoss JIRA] Closed: (WELD-322) Scopes declared by a subclass should override the scope declared by its superclass

Pete Muir (JIRA) jira-events at lists.jboss.org
Wed Dec 9 07:49:29 EST 2009


     [ https://jira.jboss.org/jira/browse/WELD-322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Pete Muir closed WELD-322.
--------------------------

    Resolution: Cannot Reproduce Bug
      Assignee: Pete Muir


Cannot reproduce either in core or Weld SE.

> Scopes declared by a subclass should override the scope declared by its superclass
> ----------------------------------------------------------------------------------
>
>                 Key: WELD-322
>                 URL: https://jira.jboss.org/jira/browse/WELD-322
>             Project: Weld
>          Issue Type: Bug
>          Components: Class Beans (Managed and Session)
>    Affects Versions: 1.0.0.GA
>            Reporter: Gavin King
>            Assignee: Pete Muir
>            Priority: Critical
>             Fix For: 1.0.1.CR1
>
>
> The following situation:
>    @RequestScoped class Foo {}
>    @Dependent class Bar extends Foo {}
> results in this:
> Exception in thread "main" org.jboss.weld.DefinitionException: WELD-000046 At most one scope may be specified on class Class [@Alternative, @Dependent, @RequestScoped]...
> 	at org.jboss.weld.bean.AbstractClassBean.initScopeType(AbstractClassBean.java:297)
> 	at org.jboss.weld.bean.AbstractBean.initialize(AbstractBean.java:147)
> 	at org.jboss.weld.bean.AbstractClassBean.initialize(AbstractClassBean.java:146)
> 	at org.jboss.weld.bean.ManagedBean.initialize(ManagedBean.java:199)
> 	at org.jboss.weld.bootstrap.AbstractBeanDeployer.deploy(AbstractBeanDeployer.java:111)
> 	at org.jboss.weld.bootstrap.BeanDeployment.deployBeans(BeanDeployment.java:151)
> 	at org.jboss.weld.bootstrap.WeldBootstrap.deployBeans(WeldBootstrap.java:367)
> 	at org.jboss.weld.environment.se.StartMain.go(StartMain.java:73)
> 	at org.jboss.weld.environment.se.StartMain.main(StartMain.java:89)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the weld-issues mailing list