Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7075335

strange init for IntQuestion

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • jt4.5
    • jt4.4
    • 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

      !!

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

              Created:
              Updated:
              Imported:
              Indexed: