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

generics-related compilation failure in TreeUtil.java using jdk 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 8
    • 8
    • javafx
    • None

          [javac] Compiling 1 source file to /run/media/bothner/MyPassport2/JWebNode/jfx/rt/javafx-ui-controls/build/classes
          [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
          [javac] /run/media/bothner/MyPassport2/JWebNode/jfx/rt/javafx-ui-controls/src/javafx/scene/control/TreeUtil.java:86: error: incompatible types: no instance(s) of type variable(s) T exist so that TreeItem conforms to TreeItem<T>
          [javac] TreeItem<T> result = getItem(child, idx ,treeItemCountDirty);
          [javac] ^
          [javac] where T is a type-variable:
          [javac] T extends Object declared in method <T>getItem(TreeItem<T>,int,boolean)
          [javac] Note: /run/media/bothner/MyPassport2/JWebNode/jfx/rt/javafx-ui-controls/src/javafx/scene/control/TreeUtil.java uses unchecked or unsafe operations.
          [javac] Note: Recompile with -Xlint:unchecked for details.
          [javac] 1 error
          [javac] 1 warning

      The attached TreeUtil.patch appears to fix the problem.

            jgiles Jonathan Giles
            pbothner Per Bothner (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: