Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4393189

Controllers should return boolean, avoid changing their source if cancelled

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.4.0
    • 1.0
    • client-libs
    • None
    • beta
    • generic
    • solaris_7
    • Verified

        The IIOParamController and IIOMetadataController interfaces contain a single
      'activate' method that currently returns 'void'. This provides no way to
      distinguish whether the controller completed successfully or whether it
      was cancelled by some user action. Instead, these methods should return
      a boolean, and guarantee that the object they are controlling is left
      untouched if 'false' is returned.

        This rfe is being filed as a result of public review feedback.

        The methods on IIOParam and IIOMetadata that call the 'activate' method
      need to be changed to return boolean in order to allow them to propagate the
      return value to the user.

            dricesunw Daniel Rice (Inactive)
            dricesunw Daniel Rice (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: