This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug java/32638] Wrong selection of field in inner class when outer class and super class have a relevant filed named the same
- From: "tromey at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2007 17:31:18 -0000
- Subject: [Bug java/32638] Wrong selection of field in inner class when outer class and super class have a relevant filed named the same
- References: <bug-32638-3639@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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