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

Thread classloader gets lost through the JFX launch process

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 8u20
    • Fix Version/s: 8u40
    • Component/s: javafx
    • Labels:

      Description

      Thread.currentThread().setContextClassLoader(a);
      Application.launch(args);
      Thread.currentThread().getContextClassLoader() != not a


      This is only a minor inconvenience for my apps (which use the UpdateFX updates framework) because you can always just run

      Thread.currentThread().setContextClassLoader(ExampleApp.class.getClassLoader());

      as the first line in start(Stage) ... but it'd be nice if it wasn't necessary. I poked through the code but it seems starting the JFX app thread is done possibly inside native code.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              kcr Kevin Rushforth
              Reporter:
              mhearnjfx Mike Hearn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: