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

Strict property and method references

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 1.6
    • Engine
    • 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. strictPropertyAndVariable_3.patch
          20 kB
          Byron Foster
        2. MacroAndVarEscape.patch
          7 kB
          Byron Foster
        3. docs.patch
          4 kB
          Byron Foster

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: