Velocity
  1. Velocity
  2. VELOCITY-381

Silent Failure of a toString that return null

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: 1.5
    • Component/s: Engine
    • Labels:
      None
    • Environment:
      Operating System: other
      Platform: Other

      Description

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

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

      see attached testcase

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

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Llewellyn Falco
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development