[ 
https://issues.apache.org/jira/browse/GROOVY-7835?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15420209#comment-15420209
 ] 

John Wagenleitner commented on GROOVY-7835:
-------------------------------------------

Groovysh does support static import aliasing.  The static import is aliasing a 
method so the following will work {{now().class}}.  Notice that the 
documentation link referenced 
(http://docs.groovy-lang.org/latest/html/documentation/index.html#_static_import_aliasing)
 shows it working this way.

> 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.:
> {quote}
> groovy:000> import static Calendar.getInstance as now
> ===> static Calendar.getInstance as now
> groovy:000> now.class
> Unknown property: now
> groovy:000> 
> {quote}
> 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)

Reply via email to