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

File association without description causes exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 15, 16
    • Fix Version/s: 16
    • Component/s: tools
    • Labels:
    • Subcomponent:
    • Introduced In Version:
      15
    • Resolved In Build:
      b11
    • Verification:
      Verified

      Description

      when processing a file association, the code calls
      FA_DESCRIPTION.fetchFrom(fa),
      FA_EXTENSIONS.fetchFrom(fa), and
      FA_CONTENT_TYPE.fetchFrom(fa)
      the fa passed in is the map of File Association parameters not the app parameters.
      now FA_DESCRIPTION.fetchFrom(fa) may call APP_NAME.fetchFrom(params) to create a dummy description (if there is no description given).
      now APP_NAME (if there is none) gets us into MAIN_CLASS which (if there is none) gets us to the new LAUNCHER_DATA.
      All with a set of parameters not intended for anything but the FA_XXX parameters.
      the result is a ConfigException in LauncherData.create(params)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              herrick Andy Herrick
              Reporter:
              herrick Andy Herrick
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: