Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-7835

Groovysh does not support static import aliasing

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.6
    • Fix Version/s: None
    • Component/s: Groovysh
    • Labels:
      None

      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

        Attachments

          Activity

            People

            • Assignee:
              jwagenleitner John Wagenleitner
              Reporter:
              jake.gage@gmail.com Jake Gage
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: