You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Pascal Schumacher (JIRA)" <ji...@apache.org> on 2016/05/22 11:58:12 UTC
[jira] [Updated] (GROOVY-7835) Groovysh does not support static
import aliasing
[ https://issues.apache.org/jira/browse/GROOVY-7835?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Pascal Schumacher updated GROOVY-7835:
--------------------------------------
Description:
Groovysh does not as yet seem to support static import aliasing, e.g.:
```
groovy:000> import static Calendar.getInstance as now
===> static Calendar.getInstance as now
groovy:000> now.class
Unknown property: now
groovy:000>
```
See http://docs.groovy-lang.org/latest/html/documentation/index.html#_static_import_aliasing
was:
Groovysh does not as yet seem to support import aliasing, e.g.:
```
groovy:000> import static Calendar.getInstance as now
===> static Calendar.getInstance as now
groovy:000> now.class
Unknown property: now
groovy:000>
```
See http://docs.groovy-lang.org/latest/html/documentation/index.html#_static_import_aliasing
Summary: Groovysh does not support static import aliasing (was: Groovysh does not support import aliasing)
update the title and description according to Jakes comment
> Groovysh does not support static import aliasing
> ------------------------------------------------
>
> Key: GROOVY-7835
> URL: https://issues.apache.org/jira/browse/GROOVY-7835
> Project: Groovy
> Issue Type: Improvement
> Components: Groovysh
> Affects Versions: 2.4.6
> Reporter: Jake Gage
> Priority: Minor
>
> Groovysh does not as yet seem to support static import aliasing, e.g.:
> ```
> groovy:000> import static Calendar.getInstance as now
> ===> static Calendar.getInstance as now
> groovy:000> now.class
> Unknown property: now
> groovy:000>
> ```
> See http://docs.groovy-lang.org/latest/html/documentation/index.html#_static_import_aliasing
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)