re PR java/19870 (gcj -C doesn't generate accessors for private members across nested...
authorRanjit Mathew <rmathew@hotmail.com>
Tue, 16 Aug 2005 18:22:31 +0000 (18:22 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Tue, 16 Aug 2005 18:22:31 +0000 (18:22 +0000)
commit3881a11b4aaa2f38fe7024edcf83eb5238835506
treea47c1d1c9061c310088fa4a15ce0ad9df0fc2865
parent6ab9469a15aaa017a8d4c71f989fafef020cb0c3
re PR java/19870 (gcj -C doesn't generate accessors for private members across nested class boundaries)

PR java/19870
* parse.y (nested_field_access_p): Rename to nested_member_access_p
and expand to handle method accesses across nested classes.
(build_outer_method_access_method): Rename to
build_nested_method_access_method.  Minor adjustments to comments.
(resolve_expression_name): Use the newly-renamed
nested_member_access_p method.
(resolve_qualified_expression_name): Likewise.
(patch_method_invocation): Also consider static methods for access
method generation.  Minor adjustments to comments.
(maybe_use_access_method): Use the more general
nested_memeber_access_p to determine access across nested class
boundaries.  Allow THIS_ARG to be NULL (for static methods).

From-SVN: r103163
gcc/java/ChangeLog
gcc/java/parse.y