This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Groovy and the fly likes groovy and packages Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Languages » Groovy
Bookmark "groovy and packages" Watch "groovy and packages" New topic
Author

groovy and packages

Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8927

Why is groovy forgiving when we type wrong package names.


Groovy
Dierk König
author
Ranch Hand

Joined: Nov 01, 2006
Posts: 43
Groovy is only different from Java when it comes to package names in that it has not only "java.lang" as default import but also
java.io
java.net
java.math.BigDecimal
java.math.BigInteger
groovy.lang
groovy.util

If you misspell any of those, it may appear as if Groovy would be more forgiving...

cheers
Dierk
Raghavan Muthu
Ranch Hand

Joined: Apr 20, 2006
Posts: 3381

That's really a nice feature!


Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: groovy and packages
 
It's not a secret anymore!