|
|
|
The workaround doesn't work, and given that the most common package used in the library that I base my daily work around has an 'as' package, Groovy is no longer an option. Guess I'll head back to Jython.
Of interest, perhaps, are libraries having an 'as' package: Vignette (that is my killer) tj Travis, you mean something like:
import foo.'as'.bar.* does not work? I just made some tests with different quoting variants - neither of them worked.
As far as I know, just using the absolute package name and quoting worked on a much earlier Groovy version. E.g. new foo.'as'.bar.Test(); That does not work anymore. I did my latest tests using Groovy 1.1-rc-3. As Travis mentioned earlier, it's not uncommon to have 'as' as package name. So it would be good to have viable solution for this problem. |
|||||||||||||||||||||||||||||||||||||||||||||||||||
Fortunately, there's a workaround in that you can quote 'as' where you need it, like in package names.
The following thing should work:
import 'as'.AsTest
I'm not closing the issue since we could possibly allow as as a semi-keyword the way we're allowing "it" to be allowed to in certain circumstances.