You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Paul King (Jira)" <ji...@apache.org> on 2020/11/26 23:16:00 UTC

[jira] [Updated] (GROOVY-9828) Migrate from Codehouse to Apache Groovy 4.0.0-alpha

     [ https://issues.apache.org/jira/browse/GROOVY-9828?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Paul King updated GROOVY-9828:
------------------------------
    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: 

{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 );
{code}

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

  was:
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?


> Migrate from Codehouse to Apache Groovy 4.0.0-alpha
> ---------------------------------------------------
>
>                 Key: GROOVY-9828
>                 URL: https://issues.apache.org/jira/browse/GROOVY-9828
>             Project: Groovy
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: 4.0.0-alpha-1
>            Reporter: Pruteanu Dragos
>            Priority: Blocker
>
> 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: 
> {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 );
> {code}
> This was previously working. Is something that I have to change or is it a bug in the new version?



--
This message was sent by Atlassian Jira
(v8.3.4#803005)