Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
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
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang