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

Strict property and method references

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: 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...

        Attachments

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

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: