promote varargs/non-varargs overrider diagnostics to errors

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P2
    • 6
    • Affects Version/s: 6
    • Component/s: tools
    • b35
    • generic
    • solaris_8
    • Verified

      Please promote the current warning when a method overrides another but only
      one of the two is varargs. It is a warning in 1.5; please make it an error
      in 1.6.

      -------------------------

      As exemplified by this program:

      class Super {
          void smeagol(Object... args) {}
          void gollum(Object[] args) {}
      }

      class Sub extends Super {
          void smeagol(Object[] args) {}
          void gollum(Object... args) {}
      }

      ###@###.### 2005-1-29 00:44:36 GMT

            Assignee:
            Jonathan Gibbons
            Reporter:
            Neal Gafter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: