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

Unconstrained type variables fails to include bounds

XMLWordPrintable

    • b109
    • generic, x86
    • generic, windows_xp
    • Verified

      See https://bugs.eclipse.org/bugs/show_bug.cgi?id=121369

      Javac fails to infer the correct type for this method call

          Foo.foo();

      given this definition of Foo:

      class Foo {
        static <T, U extends java.util.List<T>> void foo() {
          return;
        }
      }

            mcimadamore Maurizio Cimadamore
            ahe Peter Ahe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: