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

strange init for IntQuestion

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P4
    • jt4.5
    • jt4.4
    • tools
    • generic
    • generic

    Description

      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

      !!

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Imported:
              Indexed: