aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2006-01-08 00:13:08 +0000
committerTom Tromey <tromey@redhat.com>2006-01-08 00:13:08 +0000
commit0045fed20f10f776866c2eb44f13e6fa829ae3b4 (patch)
tree5169daf96129aff0ade5a4cc21bdb81792e40285
parent8ddb6bfd9ae5444ade6b732c30a4f0f844f2a403 (diff)
* model/class.cc (get_this_0): Make this$0 package-private.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/gcjx-branch@109457 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcjx/ChangeLog4
-rw-r--r--gcjx/model/class.cc11
2 files changed, 9 insertions, 6 deletions
diff --git a/gcjx/ChangeLog b/gcjx/ChangeLog
index 2ecba5fa3cf..ef0758ae5bb 100644
--- a/gcjx/ChangeLog
+++ b/gcjx/ChangeLog
@@ -1,3 +1,7 @@
+2006-01-07 Tom Tromey <tromey@redhat.com>
+
+ * model/class.cc (get_this_0): Make this$0 package-private.
+
2005-12-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
* source/parse.hh (parse::basic_type_p(token_value)): Remove extra
diff --git a/gcjx/model/class.cc b/gcjx/model/class.cc
index f3637a2f02c..160fe504bd1 100644
--- a/gcjx/model/class.cc
+++ b/gcjx/model/class.cc
@@ -1,6 +1,6 @@
// Class representation.
-// Copyright (C) 2004, 2005 Free Software Foundation, Inc.
+// Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc.
//
// This file is part of GCC.
//
@@ -637,11 +637,10 @@ model_class::get_this_0 ()
new model_forwarding_resolved (get_location (),
declaring_class),
this);
- // Note that it might be possible for us to inherit this$0
- // from our superclass. We could do this if we made it
- // package-private, and if our superclass was an inner class
- // of our declaring class. FIXME?
- this_0->set_modifiers (ACC_PRIVATE | ACC_FINAL);
+ // Make the new field package-private. This lets any inner
+ // classes of this more easily access our outer class -- no
+ // accessor methods will be required.
+ this_0->set_modifiers (ACC_FINAL);
this_0->set_synthetic ();
assert (resolution_state >= POST_MEMBERS);