Details
Description
> Doit.groovy
> ----
> class Helper {...}
> class Doit { ... }
> ----
>
> Should it really make a difference whether Helper is
> declared before or after Doit?
Yes, I think that is buggy. There is also another problem if additional
to these two classes is a script iside... you would get an error saying
something about defining two classes of the same name. Anyway... can you
fill a jira issue and assign it to me? I will fix that as soon as I have
fixed my classloader problem here.
bye blackdrag
Attachments
Issue Links
| This issue relates to: | ||||
| GROOVY-4264 | Issure related to ordering of generated classes when a script has multiple classes |
|
|
|
| GROOVY-3793 | unable to resolve class when multiple classes in the same script |
|
|
|
| GROOVY-2631 | Two interfaces with the same method |
|
|
|
| GROOVY-3644 | GroovyConsole should be able to handle multiple classes |
|
|
|
Here is a test case : the attached is both a valid Java source and a valid Groovy source.
However, Groovy 1.5.6 is not able to run it.
The strategy to implement could be: