strange init for IntQuestion

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • jt4.5
    • Affects Version/s: jt4.4
    • Component/s: tools
    • generic
    • generic

      The constructors for IntQuestion have this curious sequence:


      clear();
      setDefaultValue(value);

      And clear() is defined as { setValue(defaultValue); }

      So the code is almost circular ...
      set the value to the default value
      set the default value to the value, which is now the default value

      !!

            Assignee:
            Mikhail Ershov (Inactive)
            Reporter:
            Jonathan Gibbons
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: