Re: Two methods, same signature, different return types

Attila Szegedi <[email protected]> Mon, 18 Aug 2008 10:13:22 +0200
Newsgroups gmane.comp.windows.devel.java.advanced
Message-ID <[email protected]>
Yep, they're bridge methods -- thanks, I forgot that was their name,
so was looking in JLS for "synthetic" instead. Still, there's no
provision for ignoring bridge methods when choosing among overloaded
methods...

Attila.

On Aug 17, 2008, at 11:33 PM, Jevgeni Kabanov wrote:

> Perhaps this is not a part of JLS at all. Java 1.5 introduced a new
> BRIDGE access modifier. Perhaps the Java compiler will just ignore all
> methods marked with that? The only mention of bridge methods is in
> section 15.12.4 in Discussion. I think it is not considered a part of
> Java language, but just an implementation detail.
>
> Jevgeni Kabanov

===================================
This list is hosted by DevelopMentorĀ®  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com