Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
If you have multiple classes in a file like below:
file: FileController.groovy
-----------------------------
class UploadCommand {
@Property byte[] myFile
}
class FileController {
@Property upload = {}
}
calling
gcl.loadClass("FileController",true,false) loads the "UploadCommand" class. If you look at the loaded classes within the class loader the closures within the FileController class (like FileController$_closure1) are loaded but no the FileController. Is this a bug? Does loadClass not support multiple classes in a file?