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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • fx2.0.2
    • Affects Version/s: fx2.0
    • Component/s: 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.

            Assignee:
            David Grieve
            Reporter:
            Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: