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

Misleading CSS warning

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.0
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
    • Environment:

      all

      Description

      When working with one of my test programs I got the following warning message:

      WARNING: com.sun.javafx.css.StyleManager loadStylesheet Resource "file:/D:/MPaus/Projects/NewEclipseWorkspace/JavaFX%20-%20Demos/bin/layouttests/c66/C66InputPanel0.css" not found.

      This made me believe that there is something wrong with the file path but in fact it turned out to be the (non-existing) content of the file. I tried to start with an empty CSS file for development with the intention to add styling info when needed but this resulted in the above misleading warning. It does not even help if the file contains some comment. The warning only disappears if there is at least one CSS statement in it.

      1. Why is there a warning for an empty file? For me it is quite natural to start with an empty file.
      2. If there has to be a warning it should be more meaningfull.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              dgrieve David Grieve
              Reporter:
              dpausjfx Dr. Michael Paus (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported: