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

inference fails when a generic method is invoked with raw arguments

    Details

    • Subcomponent:
    • Resolved In Build:
      b34
    • CPU:
      generic, sparc
    • OS:
      generic, solaris_10
    • Verification:
      Not verified

      Backports

        Description

        The following program does not compile:

        class X<T> {}
        class Test {
                public void test() {
                        m(new X<X<Integer>>(), new X()); // compile error in javac
                }
                public <T> void m(X<T> x, T t) {}
        }

        ACTUAL BEHAVIOR: does not compile

        EXPECTED BEHAVIOUR: compile with warning

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  mcimadamore Maurizio Cimadamore
                  Reporter:
                  mcimadamore Maurizio Cimadamore
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: