Issue Details (XML | Word | Printable)

Key: GROOVY-2159
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Jason Dillon
Reporter: Graeme Rocher
Votes: 1
Watchers: 1
Operations

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

Stub generator does not generate stubs for Groovy sub classes

Created: 01/Oct/07 07:30 AM   Updated: 05/Oct/07 09:37 PM   Resolved: 05/Oct/07 09:37 PM
Return to search
Component/s: None
Affects Version/s: None
Fix Version/s: 1.1-rc-1

Time Tracking:
Not Specified


 Description  « Hide

I'm using the Groovy uber-compiler task and the stub generator doesn't generate stubs when you have a sub class. For example if you have

class Identity {

}
class CompositeIdentity extends Identity {

}

The stub for Identity is generated but not for CompositeIdentity



InterZ added a comment - 05/Oct/07 06:57 PM

I have experienced the exact same problem. We are trying to get groovy integrated into our application's codebase

If I remove the "return;" line in the following statement in JavaStubGenerator: (near line 58?)

// Only attempt to render our self if our super-class is resolved, else wait for it
if (!classNode.getSuperClass().isResolved()) { return; }

then my java/groovy app compiles as expected. My base groovy class and derivatives (which my java source references) all are generated and compile.

however. I am certain this is not the correct solution


Jason Dillon added a comment - 05/Oct/07 09:37 PM

This should be fixed now.