[ 
http://jira.codehaus.org/browse/MGROOVY-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138558#action_138558
 ] 

Jason Dillon commented on MGROOVY-150:
--------------------------------------

What version of the plugin are you using?  Are you using the new GMaven plugin 
or the old Codehaus groovy-maven-plugin?

> StubGeneration for non-empty superclass constructors 
> -----------------------------------------------------
>
>                 Key: MGROOVY-150
>                 URL: http://jira.codehaus.org/browse/MGROOVY-150
>             Project: GMaven
>          Issue Type: Bug
>          Components: stub generation
>            Reporter: Bart Robeyns
>            Assignee: Jason Dillon
>
> Given this groovy-class
>    import javax.servlet.http.HttpServletRequest
>    import javax.servlet.http.HttpServletRequestWrapper
>    class RequestProxy extends HttpServletRequestWrapper {
>       RequestProxy(HttpServletRequest request) {
>            super(request)
>        }
>    }
> the stub-generation creates a constructor-stub:
>    public class RequestProxy extends HttpServletRequestWrapper {
>       public RequestProxy(HttpServletRequest request){ throw new Error(); };
>    }
> that makes the java-compile complain, because there's no empty constructor 
> for the super-class HttpServletRequestWrapper to call.
> I guess this could be fixed in the joint-compiler by looking for any 'super' 
> calls in constructors and adding them to the stub-constructor-body, so it 
> would generate this stub instead:
>   
>    public class RequestProxy extends HttpServletRequestWrapper {
>       public RequestProxy(HttpServletRequest request){ super(request); throw 
> new Error(); };
>    }

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

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to