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

ASTTest cannot reference types from transform classpath

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.5.14, 3.0.8, 4.0.0-alpha-3
    • 4.0.0-beta-1, 3.0.9, 2.5.16
    • xforms
    • None

    Description

      Consider the following:

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

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

      Attachments

        Activity

          People

            emilles Eric Milles
            emilles Eric Milles
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 0.5h
                0.5h