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

No error if non-generic method is applied to type arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7
    • tools
    • x86
    • windows_7

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      The following program compiles without errors, but should not.

      interface C {
          void foo();
      }

      class D {
          {
              C x = null;
              x.<String,String>foo();
          }
      }


      REGRESSION. Last worked in version 6u24


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      interface C {
          void foo();
      }

      class D {
          {
              C x = null;
              x.<String,String>foo();
          }
      }

      ---------- END SOURCE ----------

            Unassigned Unassigned
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: