« Return to Thread: Why is this MissingMethodException thrown in Eclipse?

Re: Why is this MissingMethodException thrown in Eclipse?

by Guillaume Laforge-2 :: Rate this Message:

Reply to Author | View in Thread

Perhaps is should be delete()?
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html#delete()

On Tue, Jun 30, 2009 at 16:20, Lex Williams<lyon2003@...> wrote:

>
> Hi!
>
> The following line throws a groovy.lang.MissingMethodException :No signature
> of method: java.io.File.deleteDir() is applicable for argument types: ()
> values: {}
>
> new File(directory).deleteDir()
>
> where directory is a java.lang.String instance. The thing is, this only
> happens in Eclipse. The same code tried in groovyconsole, or ran from the
> command line works just fine.
> --------------------------------------------------------------------- To
> unsubscribe from this list, please visit:
> http://xircles.codehaus.org/manage_email



--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Why is this MissingMethodException thrown in Eclipse?