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

ObservableList in 7-source still has Predicate import

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 8u20
    • Component/s: javafx
    • Labels:
    • Subcomponent:

      Description

      The default methods in ObservableList are removed in the java7 directory, but the imports still contain an import for Predicate, which fails on 7. Import is not needed though.
      Following patch simple removes the import statement

      diff -r 6bc3a6e9b4b8 modules/base/src/main/java7/javafx/collections/ObservableList.java
      --- a/modules/base/src/main/java7/javafx/collections/ObservableList.java Fri May 02 09:04:07 2014 +0200
      +++ b/modules/base/src/main/java7/javafx/collections/ObservableList.java Fri May 02 13:05:33 2014 +0200
      @@ -28,7 +28,6 @@
       import java.util.Collection;
       import java.util.Comparator;
       import java.util.List;
      -import java.util.function.Predicate;
       
       import javafx.beans.Observable;
       import javafx.collections.transformation.FilteredList;

        Attachments

          Activity

            People

            Assignee:
            msladecek Martin Sládeček
            Reporter:
            jvos Johan Vos
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported: