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

Deprecate FXMLLoader#load(InputStream)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 8
    • 7u6
    • javafx
    • None

      Using this method to load FXML content can cause confusion. It does not provide FXMLLoader with a location context, so callers cannot use the "@" prefix in attributes to specify relative resources.

      Callers should instead use the no-arg version of the load() method. The FXMLLoader(URL) constructor or the setLocation() method can be used to specify the location of the content. The version of load() that takes an InputStream should first be deprecated and ultimately made private to avoid future confusion.

            ekrejcir Eva Krejčířová (Inactive)
            gkbrown Greg Brown (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: