shale-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar (JIRA)" <j...@apache.org>
Subject [jira] Resolved: (SHALE-405) Incorrect logic in MockApplication12.addELResolver(ELResolver resolver)
Date Mon, 05 Feb 2007 21:13:15 GMT

     [ https://issues.apache.org/struts/browse/SHALE-405?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rahul Akolkar resolved SHALE-405.
---------------------------------

    Resolution: Fixed

This has been fixed in the source repository, thanks for reporting this.


> Incorrect logic in MockApplication12.addELResolver(ELResolver resolver)
> -----------------------------------------------------------------------
>
>                 Key: SHALE-405
>                 URL: https://issues.apache.org/struts/browse/SHALE-405
>             Project: Shale
>          Issue Type: Bug
>          Components: Test
>    Affects Versions: 1.1.0-SNAPSHOT
>         Environment: Not environment specific
>            Reporter: Doug Chasman
>         Assigned To: Rahul Akolkar
>            Priority: Blocker
>             Fix For: 1.0.5-SNAPSHOT, 1.1.0-SNAPSHOT
>
>
> Current implementation will never allow addition of el resolvers regardless of the point
in the app lifecycle:
>     /** {@inheritDoc} */
>     public void addELResolver(ELResolver resolver) {
>         // Simulate the restriction that you cannot add resolvers after
>         // the first request has been processed.
>         if (resolver != null) {
>             throw new IllegalStateException("Cannot add resolvers now");
>         }
>         resolvers.add(resolver);
>     }
> should read:
>     /** {@inheritDoc} */
>     public void addELResolver(ELResolver resolver) {
>         // Simulate the restriction that you cannot add resolvers after
>         // the first request has been processed.
>         if (this.resolver != null) {
>             throw new IllegalStateException("Cannot add resolvers now");
>         }
>         resolvers.add(resolver);
>     }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message