Mixing and Matching Groovy and Java

Using 6.5 Milestone 1:

The result when you run the application above:

Comments:

println ("Dank u wel, Geertjan!")

Posted by Tom Wheeler on July 08, 2008 at 04: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 05:47 AM 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 07:28 AM 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 07:29 AM 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 04: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 08, 2008 at 06:39 PM 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 05:06 AM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Geertjan Wielenga (@geertjanw) is a Principal Product Manager in the Oracle Developer Tools group living & working in Amsterdam. He is a Java technology enthusiast, evangelist, trainer, speaker, and writer. He blogs here daily.

The focus of this blog is mostly on NetBeans (a development tool primarily for Java programmers), with an occasional reference to NetBeans, and sometimes diverging to topics relating to NetBeans. And then there are days when NetBeans is mentioned, just for a change.

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
12
13
14
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today