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/04/09 17:27:19 UTC

[jira] Created: (BEEHIVE-512) Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning

Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning 
-------------------------------------------------------------------------------------------------

         Key: BEEHIVE-512
         URL: http://issues.apache.org/jira/browse/BEEHIVE-512
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1    
    Reporter: Alejandro Ramirez
 Assigned to: Rich Feit 
    Priority: Minor
     Fix For: V1
 Attachments: Test2.zip

1.- Compile the attached pageflow (e.g. unzip the attached pageflow into a beehive enabled webapp and then compile your webapp).

Expected:  There should be a compiler warning message about the following action method returning a non declared forward ("noMatch"):

    @Jpf.Action(
        forwards = {
            @Jpf.Forward(name = "pg1", path = "Pg1.jsp") 
        })
    protected Forward page1() {
        return new Forward("noMatch");
        }
    }

Actual: NO compiler warning is thrown.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (BEEHIVE-512) Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-512?page=history ]
     
Rich Feit resolved BEEHIVE-512:
-------------------------------

    Resolution: Won't Fix

Unfortunately, it would be extremely hard to do this because APT doesn't let us crawl into the AST (the full tree of source code), so at compile time we have no idea that an unresolvable forward is being returned.  It *would* be really helpful though.

> Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning
> ------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-512
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-512
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Rich Feit
>     Priority: Minor
>      Fix For: V1
>  Attachments: Test2.zip
>
> 1.- Compile the attached pageflow (e.g. unzip the attached pageflow into a beehive enabled webapp and then compile your webapp).
> Expected:  There should be a compiler warning message about the following action method returning a non declared forward ("noMatch"):
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(name = "pg1", path = "Pg1.jsp") 
>         })
>     protected Forward page1() {
>         return new Forward("noMatch");
>         }
>     }
> Actual: NO compiler warning is thrown.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Updated: (BEEHIVE-512) Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-512?page=history ]

Alejandro Ramirez updated BEEHIVE-512:
--------------------------------------

    Attachment: Test2.zip

> Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning
> ------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-512
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-512
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Rich Feit
>     Priority: Minor
>      Fix For: V1
>  Attachments: Test2.zip
>
> 1.- Compile the attached pageflow (e.g. unzip the attached pageflow into a beehive enabled webapp and then compile your webapp).
> Expected:  There should be a compiler warning message about the following action method returning a non declared forward ("noMatch"):
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(name = "pg1", path = "Pg1.jsp") 
>         })
>     protected Forward page1() {
>         return new Forward("noMatch");
>         }
>     }
> Actual: NO compiler warning is thrown.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


[jira] Closed: (BEEHIVE-512) Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning

Posted by "Alejandro Ramirez (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-512?page=all ]
     
Alejandro Ramirez closed BEEHIVE-512:
-------------------------------------


Closing as Won't Fix.  See Rich's explanation.

> Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning
> ------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-512
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-512
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Alejandro Ramirez
>     Priority: Minor
>      Fix For: V1
>  Attachments: Test2.zip
>
> 1.- Compile the attached pageflow (e.g. unzip the attached pageflow into a beehive enabled webapp and then compile your webapp).
> Expected:  There should be a compiler warning message about the following action method returning a non declared forward ("noMatch"):
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(name = "pg1", path = "Pg1.jsp") 
>         })
>     protected Forward page1() {
>         return new Forward("noMatch");
>         }
>     }
> Actual: NO compiler warning is thrown.

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


[jira] Assigned: (BEEHIVE-512) Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning

Posted by "Rich Feit (JIRA)" <be...@incubator.apache.org>.
     [ http://issues.apache.org/jira/browse/BEEHIVE-512?page=history ]

Rich Feit reassigned BEEHIVE-512:
---------------------------------

    Assign To: Alejandro Ramirez  (was: Rich Feit)

> Action Methods that return a non-declared forward in @Jpf.Action should throw a compiler warning
> ------------------------------------------------------------------------------------------------
>
>          Key: BEEHIVE-512
>          URL: http://issues.apache.org/jira/browse/BEEHIVE-512
>      Project: Beehive
>         Type: Bug
>   Components: NetUI
>     Versions: V1
>     Reporter: Alejandro Ramirez
>     Assignee: Alejandro Ramirez
>     Priority: Minor
>      Fix For: V1
>  Attachments: Test2.zip
>
> 1.- Compile the attached pageflow (e.g. unzip the attached pageflow into a beehive enabled webapp and then compile your webapp).
> Expected:  There should be a compiler warning message about the following action method returning a non declared forward ("noMatch"):
>     @Jpf.Action(
>         forwards = {
>             @Jpf.Forward(name = "pg1", path = "Pg1.jsp") 
>         })
>     protected Forward page1() {
>         return new Forward("noMatch");
>         }
>     }
> Actual: NO compiler warning is thrown.

-- 
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
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira