You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@beehive.apache.org by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org> on 2005/05/19 22:40:58 UTC

[jira] Assigned: (BEEHIVE-288) Compiler: A jpf which has 2 forward annotations with the same name on the same action, is NOT producing a warning or error

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

Alejandro Ramirez reassigned BEEHIVE-288:
-----------------------------------------

    Assign To: Julie Zhuo  (was: Scott Symmank)

Please verify.

> Compiler: A jpf which has 2 forward annotations  with the same name on the same action, is NOT producing a warning or error
> ---------------------------------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-288
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-288
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1Beta
>     Reporter: Scott Symmank
>     Assignee: Julie Zhuo
>     Priority: Minor
>      Fix For: V1Beta

>
> The compiler should print a warning or error, if an action has duplicate
> forwards. 
> see page1() below:
> <snip>
> package Test3;
> import org.apache.beehive.netui.pageflow.*;
> import org.apache.beehive.netui.pageflow.annotations.Jpf;
> /**
>  *******************************************************************************
>  *
>  * @desc: This PageFlowController file contains an ActionForward method named "page1"
>  * that declares two forwards of the same name.
>  *
>  * @result: The compiler should catch this and report an error or at least a warning.
>  *
>  ******************************************************************************/
> @Jpf.Controller()
> public class Controller extends PageFlowController
>     {
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(
>                 name = "pg1",
>                 path = "Pg1.jsp") 
>         })
>     protected Forward begin()
>         {
>         return new Forward("pg1");
>         }
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(
>                 name = "pg1",
>                 path = "Pg1.jsp"),
>             @Jpf.Forward(
>                 name = "pg1",
>                 path = "Pg1.jsp") 
>         })
>     protected Forward page1()
>         {
>         return new Forward("pg1");
>         }
>     }
> </snip>

-- 
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