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

imports and custom class defs not working in Groovysh Interpreter Mode

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.4.1, 2.4.2, 2.4.3, 2.4.4
    • Fix Version/s: 2.5.0-alpha-1
    • Component/s: Groovysh
    • Labels:
      None

      Description

      To reproduce

      groovy:000> :set interpreterMode true
      groovy:000> class Me { String name }
      ===> true
      groovy:000> m = new Me()
      script14405523893121089774169.groovy: 2: unable to resolve class Me 
      
      groovy:000> import java.rmi.Remote
      ===> java.rmi.Remote
      groovy:000> Remote x
      script1440757530265448239810.groovy: 1: unable to resolve class Remote 
       @ line 1, column 8.
         Remote x
      

      See https://github.com/apache/incubator-groovy/pull/100 for fix

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pascalschumacher Pascal Schumacher
                Reporter:
                tkruse Thibault Kruse
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: