You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Jake Gage (JIRA)" <ji...@apache.org> on 2016/05/17 00:09:12 UTC

[jira] [Commented] (GROOVY-7835) Groovysh does not support import aliasing

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

Jake Gage commented on GROOVY-7835:
-----------------------------------

Addendum: this seems to be only *static import aliasing:

```
groovy:000> import java.sql.Date as SQLDate
===> static java.lang.Math.*, java.sql.Date as SQLDate
groovy:000> SQLDate
```

Other aliasing seems to work fine.

> Groovysh does not support 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 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)