Re: [Java Spec Report] Precise specification for method resolution needed
"danhicksbyron" <[email protected]> Thu, 27 Jan 2005 17:04:12 -0000
| Newsgroups | gmane.comp.java.spec-report |
|---|---|
| Message-ID | <[email protected]> |
--- In [email protected], Douglas Dunn <dunn@c...> wrote: > I spent a lot of time studying overloaded method matching in Java and > had the advantage of help from Sun's compiler writer. I ripped the > attached from my book and cleaned it up. Please let me know if this helps. Thanks, but I'm looking for a JVM spec, not a JLS spec. Eg, 5.4.3.3 in the JVM 2nd edition spec. An example of how this spec is not accurate is private methods: If C declares a private method (and the caller is not C), AND if it inherited a non-private method from its superclass, the non-private method is "found". However, if C did not inherit a method of the same name then the private method is "found". Throw in a few static methods and it gets even more confusing. To unsubscribe from this mailing list, send an email to: [email protected] Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/java-spec-report/ <*> To unsubscribe from this group, send an email to: [email protected] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/