You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Carlin Rogers (JIRA)" <de...@beehive.apache.org> on 2006/09/20 07:15:22 UTC

[jira] Resolved: (BEEHIVE-1146) Provide annotation processor warning for conditional forwards with duplicate expressions

     [ http://issues.apache.org/jira/browse/BEEHIVE-1146?page=all ]

Carlin Rogers resolved BEEHIVE-1146.
------------------------------------

    Resolution: Fixed
      Assignee: Julie Zhuo  (was: Carlin Rogers)

Fixed with SVN revision 448070.  The revision includes a new NetUI compiler test to check the expected warning message for duplicate expressions in the conditional forwards.

> Provide annotation processor warning for conditional forwards with duplicate expressions
> ----------------------------------------------------------------------------------------
>
>                 Key: BEEHIVE-1146
>                 URL: http://issues.apache.org/jira/browse/BEEHIVE-1146
>             Project: Beehive
>          Issue Type: Improvement
>          Components: NetUI
>    Affects Versions: 1.0.1
>            Reporter: Troy Beecroft
>         Assigned To: Julie Zhuo
>            Priority: Minor
>             Fix For: v.next
>
>
> Currently if you create a simple action with more than one conditional forward, and two of these forwards have the same expression, there is no warning generated by the annotation processor.  This scenario could probably happen easily enough via cut and paste error...  and since one of the forwards is effectively dropped quietly at run time, it'd be a nice check to add.
> Here's an example of the situation:
> @Jpf.Controller
>   (simpleActions = {
>     @Jpf.SimpleAction(name = "anAction", path = "index.jsp", conditionalForwards = {
>         @Jpf.ConditionalForward(condition = "${pageFlow.myProperty}", path = "some.jsp"), 
>         @Jpf.ConditionalForward(condition = "${pageFlow.myProperty}", path = "another.jsp") }) })

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