Uploaded image for project: 'Velocity'
  1. Velocity
  2. VELOCITY-381

Silent Failure of a toString that return null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 1.5
    • Engine
    • None
    • Operating System: other
      Platform: Other
    • 35043

    Description

      $!method.toString() -
      $!method.getInstance().toString() -
      $!method -
      $!method.getInstance()

      if the toString method returns null,
      this will return ' - - null - null'

      see attached testcase

      Attachments

        1. patch2.txt
          0.9 kB
          William Glass-Husain
        2. ASF.LICENSE.NOT.GRANTED--VelocitySilentTest.java
          1 kB
          Llewellyn Falco
        3. ASF.LICENSE.NOT.GRANTED--VelocityParser.java
          4 kB
          Llewellyn Falco
        4. ASF.LICENSE.NOT.GRANTED--StringResourceLoader.java
          2 kB
          Llewellyn Falco
        5. ASF.LICENSE.NOT.GRANTED--ContextAware.java
          0.3 kB
          Llewellyn Falco

        Activity

          People

            Unassigned Unassigned
            isidore@setgame.com Llewellyn Falco
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: