page flow actions can't use generic type-variables as arguments
---------------------------------------------------------------

         Key: BEEHIVE-233
         URL: http://issues.apache.org/jira/browse/BEEHIVE-233
     Project: Beehive
        Type: Bug
  Components: NetUI  
    Versions: V1Beta    
    Reporter: Rich Feit
 Assigned to: Rich Feit 
    Priority: Minor
     Fix For: V1Beta


The following class gives an error for the 'T' argument to the submit action:

    @Jpf.Controller(
        [EMAIL PROTECTED](name="begin", path="index.jsp")}
    )
    public class Controller< T extends Controller.BaseFormBean > extends 
PageFlowController
    {
        @Jpf.Action(
            forwards={
               @Jpf.Forward(name="index", path="index.jsp")
            }
        ) 
        protected Forward submit( T form )
        {
            return new Forward("index");
        }

        public static class BaseFormBean implements Serializable
        {
            private String _foo;
            public void setFoo( String foo ) { _foo = foo; }
            public String getFoo() { return _foo; }
        }
    }

We should support this -- as far as the annotation processor is concerned, T is 
a BaseFormBean.

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

Reply via email to