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

NPE in MetaClassHelper.getClassName when calling static methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-JSR-5
    • 1.0-RC-1
    • None
    • None
    • Any OS
      Any JDK
    • Patch

    Description

      when org.codehaus.groovy.runtime.Invoker invokes static method via invokeStaticMethod, it calls metaClass.invokeStaticMethod(null, method, asArray(arguments)), the null argument is subsequently passed to MetaClassHelper.getClassName where it causes NullPonterException

      Attachments

        1. MetaClassHelper.patch
          0.5 kB
          Zoran Regvart
        2. MetaClassHelperTest.java
          0.2 kB
          Zoran Regvart

        Activity

          People

            blackdrag Jochen Theodorou
            zregvart@gmail.com Zoran Regvart
            Votes:
            1 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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