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

ExtensionInstallerService.updateProgress() doesn't force the progress bar to be visible after calling hideProgressBar() as specified

XMLWordPrintable

    • b19
    • Not verified

        The specification

        http://docs.oracle.com/javase/8/docs/jre/api/javaws/jnlp/javax/jnlp/ExtensionInstallerService.html#hideProgressBar--

        says:

        --------------------------------
        void hideProgressBar()
        Hides the progress bar. Any subsequent calls to updateProgress will force it to be visible.
        --------------------------------
        void updateProgress(int value)
        Updates the progress bar.
        Parameters:
        value - progress bar value - should be between 0 and 100.
        --------------------------------

        Experiments with the interactive tests show that it seems like the progress bar gets shown by updateProgressBar() method after getting hidden only is the passed value is different from previously set - then the progress bar gets painted again after hiding.
        This behavior contradicts the spec and causes failure of the following interactive test from JNLP TCK 8.0.20

        api/javax_jnlp/ExtensionInstallerService/index.html#statusWindow

        Please see the attached screenshot.







              almatvee Alexander Matveev
              dbessono Dmitry Bessonov
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: