Uploaded image for project: 'Commons Jelly'
  1. Commons Jelly
  2. JELLY-167

add 'public JellyContext newEmptyJellyContext()' to JellyContext

    XMLWordPrintableJSON

    Details

    • Type: Wish
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0-beta-5
    • Fix Version/s: None
    • Component/s: core / taglib.core
    • Labels:
      None

      Description

      method 'public JellyContext newJellyContext()' uses 'public JellyContext(JellyContext parent)'.
      This constructor copies parent properties AND parent variables.

      To create variables quenched context, you have to clear variables or to set inherit to false.

      I wish to have a new method 'public JellyContext newEmptyJellyContext()' which copies all root context properties (as tag caching) but DOESN'T copy variables map.

      Even if you could do the same with inherit or variable map clearing or other methods, it would be more meaningful to use a assigned method

        Attachments

        1. patch.function.2.txt
          27 kB
          Marc DeXeT

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              marc_dexet Marc DeXeT
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: