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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P4
    • None
    • Affects Version/s: 7
    • Component/s: 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 ----------

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: