groovy

Stub generator does not generate stubs for Groovy sub classes

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.1-rc-1
  • Component/s: None
  • Labels:
    None
  • Number of attachments :
    0

Description

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

Activity

Hide
InterZ added a comment -

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

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

This should be fixed now.

Show
Jason Dillon added a comment - This should be fixed now.

People

Vote (1)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: