Download NetBeans!

20080708 Tuesday July 08, 2008

Mixing and Matching Groovy and Java

Using 6.5 Milestone 1:

The result when you run the application above:

Jul 08 2008, 09:45:26 AM PDT Permalink

Trackback URL: http://blogs.sun.com/geertjan/entry/mixing_and_matching_groovy_and
Comments:

println ("Dank u wel, Geertjan!")

Posted by Tom Wheeler on July 08, 2008 at 11:42 AM PDT #

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?

Posted by Markus Jais on July 08, 2008 at 12:47 PM PDT #

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!

Posted by Pratik Patel on July 08, 2008 at 02:28 PM PDT #

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.

Posted by Martin Adamek on July 08, 2008 at 02:29 PM PDT #

@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.

Posted by Markus Jais on July 08, 2008 at 11:06 PM PDT #

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)

Posted by Joerg Plewe on July 09, 2008 at 01:39 AM PDT #

@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

Posted by Martin Adamek on July 10, 2008 at 12:06 PM PDT #

Post a Comment:

Name:
E-Mail:
URL:

Your Comment:

HTML Syntax: NOT allowed