Fixes PR java/9685, PR java/15073
commit78425cf348ffec46a6275d138b77442d0a1289fa
authorrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 May 2004 17:43:48 +0000 (6 17:43 +0000)
committerrmathew <rmathew@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 6 May 2004 17:43:48 +0000 (6 17:43 +0000)
tree3ad5f9c549f4bba0912d27911ceac310bdbafb41
parent37c54eae4b769702607da59995422f17f2470d33
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().

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81573 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/java/ChangeLog
gcc/java/parse.y