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

Posibility to configure ReportInvalidReferences to don't report report variables,properties and method which exist, but only have null value

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.5
    • 2.0
    • Engine
    • None
    • any

    Description

      ReportInvalidReferences has very big imperfection, it report by default all variables, properties and method which has null value.
      This may cause many problems for developer.

      I for example need only validate template without any data, only check which contain right variables, properties or method (which exist), it's value is not important for me.

      I tried use my own ReferenceInsertionEventHandler for replace null value with "" (empty String) but Velocity call InvalidReference handler before ReferenceInsertionEventHandler.

      I suggest configuration options for this (repor or doesn't report null value)

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            t.prochazka Tomáš Procházka
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment