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

ValueConstraints - isValid() implementation contradicts with the isUnsetAllowed()

    Details

    • Type: Bug
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: TBD_Major
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      jdts 2.1_b06 + javatest 4.1.2_b04
      Should be reproducible with a sample TestSuite

      1. Create Interview that has a PropertiesQuestion.
      2. Add one property to this question: new Properties() with one entry A= (empty string), then setValue(properties).
      3. Set a ValueConstaraints for property A: setConstraints("A", new ValueConstraints(true /*readonly*/, false /*visible*/))
      4. Try to edit such interview.
      5. Configuration editor will show NO UIControl for such PropertiesQuestion - because it has no visible rows. But it will block the further actions saying that the Question has invalid value.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dbessono Dmitry Bessonov
                Reporter:
                kromanovorcl Konstantin Romanovskiy (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: