[gcjx] Patch: FYI: fix static import
Tom Tromey
tromey@redhat.com
Tue Nov 1 01:00:00 GMT 2005
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);
More information about the Java-patches
mailing list