[Bug java/32638] Wrong selection of field in inner class when outer class and super class have a relevant filed named the same
tromey at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Thu Jul 5 17:31:00 GMT 2007
------- Comment #1 from tromey at gcc dot gnu dot org 2007-07-05 17:31 -------
I tried this with svn trunk and got 'false'.
If there is a bug here it is in ecj, not gcj.
I'm not sure I agree with your interpretation here.
I don't see how specificity applies. Isn't that term only used
for overload resolution? It's been a while since I was completely
familiar with the JLS, though ... where are you reading?
IMO the JLS could be clearer here, but I believe the local 'o'
shadows the field a.o. See:
http://java.sun.com/docs/books/jls/third_edition/html/names.html#34133
Anyway, I suggest filing against ecj or perhaps the JDK for resolution.
--
tromey at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |tromey at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32638
More information about the Java-prs
mailing list