[
http://jira.codehaus.org/browse/MGROOVY-150?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=138567#action_138567
]
Jason Dillon commented on MGROOVY-150:
--------------------------------------
They are in the codehaus snapshot repository:
http://snapshots.repository.codehaus.org/
> 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