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

Migrate from Codehouse to Apache Groovy 4.0.0-alpha

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 4.0.0-alpha-1
    • 4.0.0-alpha-2
    • Compiler
    • None

    Description

      I am migrating from codehouse.groovy:3.0.4 to apache.groovy I got exceptions:

      unable to resolve class Act

      I am using in my code: 

      final ImportCustomizer importCustomizer = new ImportCustomizer();
       importCustomizer.addImports( "Act", Act.class.getName() );
       importCustomizer.addImports( "Record", Record.class.getName() );
      
      compilerConfiguration.addCompilationCustomizers( importCustomizer );
      
      final GroovyShell shell = new GroovyShell( binding, compilerConfiguration );
      

      This was previously working. Is something that I have to change or is it a bug in the new version?

      Attachments

        Activity

          People

            Unassigned Unassigned
            dprutean Pruteanu Dragos
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: