GMaven (OLD... DO NOT USE)

Some weirdness with stubs and constructors.

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0-beta-3
  • Fix Version/s: 1.0-rc-1
  • Component/s: stub generation
  • Labels:
    None
  • Number of attachments :
    1

Description

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.

Issue Links

Activity

Hide
Russel Winder added a comment -

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

Show
Russel Winder added a comment - 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
Hide
Jason Dillon added a comment -

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.

Show
Jason Dillon added a comment - 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.
Hide
Jason Dillon added a comment -

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.

Show
Jason Dillon added a comment - 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.
Hide
Jason Dillon added a comment -

The new stub generator does a better job at trying to figure out how to invoke this() or super() for constructors.

Show
Jason Dillon added a comment - The new stub generator does a better job at trying to figure out how to invoke this() or super() for constructors.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: