This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: fix static import
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 31 Oct 2005 17:53:14 -0700
- Subject: [gcjx] Patch: FYI: fix static import
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
This fixes static import to work again.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* model/import.hh (model_import::get_simple_name): Now virtual.
(model_static_import_single::get_simple_name): New method.
Index: model/import.hh
===================================================================
--- model/import.hh (revision 105944)
+++ model/import.hh (working copy)
@@ -64,7 +64,7 @@
virtual bool single_import_p () const = 0;
- std::string get_simple_name () const
+ virtual std::string get_simple_name () const
{
assert (single_import_p ());
return ::get_simple_name (name);
@@ -201,6 +201,11 @@
member_name = ::get_simple_name (n);
}
+ std::string get_simple_name () const
+ {
+ return member_name;
+ }
+
void resolve (resolution_scope *);
model_class *find_class (const std::string &name);