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

Groovy embeddable JAR contains outdated version of Commons CLI causing problems with Gant/Grails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Cannot Reproduce
    • 1.1-rc-2
    • 1.1-rc-3
    • None
    • None

    Description

      org.codehaus.groovy.runtime.typehandling.GroovyCastException: Cannot
      cast object 'org.apache.commons.cli.PosixParser@79ab0' with
      class 'org.apache.commons.cli.PosixParser' to class
      'groovyjarjarcommonscli.CommandLineParser'
      at org.codehaus.groovy.runtime.typehandling.DefaultTypeTransformation.castToType(DefaultTypeTransformation.java:328)
      at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:1925)
      at groovy.lang.MetaClassImpl.setProperty(MetaClassImpl.java:2483)
      at groovy.lang.MetaClassImpl.setProperties(MetaClassImpl.java:1218)
      at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1195)
      at groovy.lang.MetaClassImpl.invokeConstructor(MetaClassImpl.java:1112)
      at org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:126)
      at org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.java:95)
      at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeNewN(ScriptBytecodeAdapter.java:245)
      at gant.Gant.process(Gant.groovy:185)

      Attachments

        Activity

          People

            Unassigned Unassigned
            graemerocher Graeme Rocher
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: