Author: rich
Date: Wed Mar 23 16:22:23 2005
New Revision: 158856

URL: http://svn.apache.org/viewcvs?view=rev&rev=158856
Log:
Fix for http://issues.apache.org/jira/browse/BEEHIVE-460 : CCE when hitting an 
action that implements an abstract action that uses generics

tests: netui bvt (WinXP)
BB: self (linux)


Modified:
    
incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenStrutsApp.java

Modified: 
incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenStrutsApp.java
URL: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenStrutsApp.java?view=diff&r1=158855&r2=158856
==============================================================================
--- 
incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenStrutsApp.java
 (original)
+++ 
incubator/beehive/trunk/netui/src/compiler-core/org/apache/beehive/netui/compiler/genmodel/GenStrutsApp.java
 Wed Mar 23 16:22:23 2005
@@ -273,18 +273,22 @@
         for ( int i = 0; i < actionMethods.length; i++ )
         {
             MethodDeclaration actionMethod = actionMethods[i];
-            ActionModel actionModel = new GenActionModel( actionMethod, this, 
_jclass );
-            addActionMapping( actionModel );
-            ParameterDeclaration[] params = actionMethod.getParameters();
             
-            if ( params.length > 0 )
+            if ( ! actionMethod.hasModifier( Modifier.ABSTRACT ) )
             {
-                ParameterDeclaration param1 = params[0];
-                TypeMirror paramType = param1.getType();
+                ActionModel actionModel = new GenActionModel( actionMethod, 
this, _jclass );
+                addActionMapping( actionModel );
+                ParameterDeclaration[] params = actionMethod.getParameters();
                 
-                if ( paramType instanceof DeclaredType )
+                if ( params.length > 0 )
                 {
-                    getMessageResourcesFromForm( CompilerUtils.getDeclaration( 
( DeclaredType ) paramType ), actionModel );
+                    ParameterDeclaration param1 = params[0];
+                    TypeMirror paramType = param1.getType();
+                    
+                    if ( paramType instanceof DeclaredType )
+                    {
+                        getMessageResourcesFromForm( 
CompilerUtils.getDeclaration( ( DeclaredType ) paramType ), actionModel );
+                    }
                 }
             }
         }


Reply via email to