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

StyleSheet() constructor should not call ClassLoader.getSystemResource()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • fx2.0.2
    • fx2.0
    • javafx
    • None

      See RT-16904 for details on why calling ClassLoader.getSystemClassLoader() or ClassLoader.getSystemResource() to get a codebase is a bad idea. First of all, if this is called from user code it will raise a SecurityException. Second, using the URL resulting from ClassLoader.getSystemResource("") as a codebase against which to resolve relative URLs won't work.

            dgrieve David Grieve
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: