Fixes PR java/9685, PR java/15073
authorRanjit Mathew <rmathew@hotmail.com>
Thu, 6 May 2004 17:43:48 +0000 (17:43 +0000)
committerRanjit Mathew <rmathew@gcc.gnu.org>
Thu, 6 May 2004 17:43:48 +0000 (17:43 +0000)
commit8ae6595c0b62f928fee2dbb3bb1a9b41299479a2
tree3ad5f9c549f4bba0912d27911ceac310bdbafb41
parentdb643b91abd4de5095cdcad17a5093cdaf146f86
Fixes PR java/9685, PR java/15073

Fixes PR java/9685, PR java/15073
* parse.y (accessibility_string): New method.
(not_accessible_field_error): Use accessibility_string()
instead of java_accstring_lookup().
(resolve_qualified_expression_name): Check with
check_pkg_class_access() before allowing access using
qualified names.
Fix comment typo.
Use check_pkg_class_access() instead of not_accessible_p()
for unqualified types.
(not_accessible_p): Use DECL_CONTEXT (member) instead of
REFERENCE for package-private access checking.
(patch_method_invocation): Use accessibility_string() instead
of java_accstring_lookup().

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