|
Quick Lists
|
|
Bug ID:
|
4030368
|
|
Votes
|
0
|
|
Synopsis
|
Illegal hiding by inherited method names is not diagnosed.
|
|
Category
|
java:compiler
|
|
Reported Against
|
1.1
|
|
Release Fixed
|
1.1.1
|
|
State
|
11-Closed,
Unverified,
bug
|
|
Priority:
|
3-Medium
|
|
Related Bugs
|
6588234
|
|
Submit Date
|
05-FEB-1997
|
|
Description
|
The following code should fail to compile, but it compiles silently:
//JCK test innr005, bug #
class InheritHideBug {
static class S {
void m() { }
}
void m() { }
class C extends S {
{
m(); // BAD
}
}
}
|
|
Work Around
|
N/A
|
|
Evaluation
|
Typo in MethodExpression.checkValue
|
|
Comments
|
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |