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

Thread classloader gets lost through the JFX launch process

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 8u40
    • 8u20
    • javafx

    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

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported: