[
http://jira.codehaus.org/browse/MGROOVY-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138622#action_138622
]
bart.robeyns edited comment on MGROOVY-150 at 6/14/08 5:47 AM:
---------------------------------------------------------------
Sorry, error on my part. I've built the plugin myself and now my build works
fine. Don't know what went wrong, but I guess I must have had an old RC-3
version in my repo(?).
Anyway, thanks for the fix.
was (Author: bart.robeyns):
Sorry, error on my part. I've built the plugin myself and now my build
works find. Don't know what went wrong, but I guess I must have had an old RC-3
version in my repo(?).
Anyway, thanks for the fix.
> 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
> Fix For: 1.0-rc-3
>
>
> 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