You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@groovy.apache.org by "Eric Milles (Jira)" <ji...@apache.org> on 2021/08/12 18:39:00 UTC

[jira] [Created] (GROOVY-10199) ASTTest cannot reference types from transform classpath

Eric Milles created GROOVY-10199:
------------------------------------

             Summary: ASTTest cannot reference types from transform classpath
                 Key: GROOVY-10199
                 URL: https://issues.apache.org/jira/browse/GROOVY-10199
             Project: Groovy
          Issue Type: Bug
          Components: xforms
    Affects Versions: 4.0.0-alpha-3, 3.0.8, 2.5.14
            Reporter: Eric Milles
            Assignee: Eric Milles


Consider the following:
{code:groovy}
class C {
  void test() {
    @groovy.transform.ASTTest(value={
      org.apache.commons.lang3.tuple.Pair.of(node,null)
    })
    def var = null
  }
}
{code}

With {{commons-lang3.jar}} on the compiler classpath, this code emits error "Cannot get property 'apache' on null object".



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