X

Geertjan's Blog

  • July 8, 2008

Mixing and Matching Groovy and Java

Geertjan Wielenga
Product Manager
Using 6.5 Milestone 1:

The result when you run the application above:

Join the discussion

Comments ( 7 )
  • Tom Wheeler Tuesday, July 8, 2008

    println ("Dank u wel, Geertjan!")


  • Markus Jais Tuesday, July 8, 2008

    Hi Geertjan

    do you know if there a way to enable code completion for Groovy classes I wrote myself?

    I use 6.5 M1 and code completion for methods in classes I wrote myself does not work?

    Is this not yet implemented or am I doing something wrong here?


  • Pratik Patel Tuesday, July 8, 2008

    See http://www.netbeans.org/issues/show_bug.cgi?id=139286

    The groovy plugin is still what I consider "alpha" quality... but it has made great strides lately and hopefully will keep getting better quickly!


  • Martin Adamek Tuesday, July 8, 2008

    Hi Markus,

    code completion is right now under heavy development and things are changing every day. I think that in M1 whole parts are not enabled and the parts for methods in your class will come soon.


  • Markus Jais Tuesday, July 8, 2008

    @Martin: Thanks for your reply. Looking forward to those features.

    Thanks a lot for your hard work. I am sure Netbeans will be the best IDE for Groovy in the future.


  • Joerg Plewe Wednesday, July 9, 2008

    Great stuff, I missed that a couple of years before.

    Do you know how the build works in case e.g. a java class inherits from a groovy class that in turn is derived from a java class again? (All 3 classes in the same project of course)


  • Martin Adamek Thursday, July 10, 2008

    @Joerg: Groovy's joint compilation is used, that means Java stubs for Groovy classes are generated -> Java sources are compiled against those -> Groovy classes are compiled finally


Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.