History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: MGROOVY-104
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Critical Critical
Assignee: Jason Dillon
Reporter: Luke Daley
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
GMaven

Some weirdness with stubs and constructors.

Created: 15/Dec/07 06:36 PM   Updated: 18/Apr/08 03:44 AM
Component/s: stub generation
Affects Version/s: 1.0-beta-3
Fix Version/s: 1.0-rc-1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive mymodule.zip (4 kb)

Issue Links:
dependent
 


 Description  « Hide
If the groovy class being generated does not implement a no argument constructor, it seems to cause errors.

Attached is a simple project that shows this.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Russel Winder - 20/Dec/07 02:52 AM
It seems that Gant has a version of this problem. It means Maven cannot build Gant currently. This probably means that all the Gant artefacts in the Maven repository are broken and need to be removed

Jason Dillon - 20/Dec/07 02:54 PM
I am aware of this problem, though I've not yet figured out an easy and bulletproof way to resolve this.

I think I have to hook up more inputs for QDox so that at the time the stubs are generated, the parent class is available which will either have QDox details or a loaded Java class to inspect for constructors.


Jason Dillon - 19/Jan/08 02:36 PM
Its defs clear that something else needs to be done for constructors. Will have to invoke super() and figure out what to pass in... blah.

Jason Dillon - 18/Apr/08 03:44 AM
The new stub generator does a better job at trying to figure out how to invoke this() or super() for constructors.