-
Enhancement
-
Resolution: Fixed
-
P2
-
6
-
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
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
- relates to
-
JDK-6224167 misleading varargs error message
-
- Closed
-