0

I tend to think that Groovy is a super-set of Java... But I would like to hear opinions of more seasoned developers.

Is there anything that you can do in Java, but not in Groovy?

Java EE specs are fairly complex and maybe some of them are not accessible via Groovy?

Kara
  • 6,115
  • 16
  • 50
  • 57
Daniil Shevelev
  • 11,739
  • 12
  • 50
  • 73
  • 2
    As Will mentioned, here is something in place of [do..while](http://stackoverflow.com/a/20921949/2051952) – dmahapatro Jan 27 '14 at 18:36

2 Answers2

2

do { ... } while() comes to mind. You can emulate it using closures or whatever.

...

We are currently working on a Java EE 6 coded mostly in Groovy. No problems whatsoever. CDI, transactions, jsf's managed beans, all work flawlessly. Of course we are kinda restricted when it comes to metaprogramming, so we usually use it for tests, mocks and when there are only groovy objects talking.

Will
  • 14,348
  • 1
  • 42
  • 44
1

You can do everything with Groovy you can do with Java. The only complication is when you want the two to interact.

You can also use all the popular frameworks like Spring. In fact, Spring even lets you configure your beans with a Groovy bean definition DSL.

Vidya
  • 29,932
  • 7
  • 42
  • 70