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

promote varargs/non-varargs overrider diagnostics to errors

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P2 P2
    • 6
    • 6
    • 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: