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

Why is this MissingMethodException thrown in Eclipse?

by geossscripting :: Rate this Message:

Reply to Author | View in Thread


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

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