Velocity
  1. Velocity
  2. VELOCITY-618

Strict property and method references

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.6
    • Component/s: Engine
    • Labels:
      None

      Description

      The given patch against trunk adds a new option 'runtime.references.strict'. When set to true, invalid property references will throw a InvalidMethodException. For example $foo.bar will throw an exception if the object contained in $foo has no such property as bar. Any kind of reference to bar will cause an exception including:

      #if(#foo.bar)
      #set($foo.bar = "junk")
      #set($foo.getBar())
      etc...

      1. strictPropertyAndVariable_3.patch
        20 kB
        Byron Foster
      2. MacroAndVarEscape.patch
        7 kB
        Byron Foster
      3. docs.patch
        4 kB
        Byron Foster

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Byron Foster
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development