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

Problems with BlockedException thrown from SecureStaticVersioning

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • deploy
    • b144

      The code in both SecureStaticVersioning in methods ShowSSV2Dialog() and showCannotUseDialog throws a BlockedException, there are two problems with this exception:
      1.) it constructs exception with the "key" argument "deployment.blocked.cancel", and there is no such resource in Deployment.java
      2.) it throws a BlockedException, which previously just exited, but after code change to show the Blocked Dialog after getting back into Plugin2Manager, it will show a blocked dialog.

      In these cases - and I need to check for any more such cases - the BlockedException is thrown without calling ShowBlockedDialog because the user has already seen a dialog and declined to run (in one case) or told he cannot (in the other) - so we have to differentiate between BlockedException that may need to be later shown, and those that don't.

      Even without the dialog the resource for the string "deployment.blocked.cancel" should have been shown in trace output instead of the key that is shown now (since there is no such resource).

            herrick Andy Herrick (Inactive)
            herrick Andy Herrick (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: