Commit cb14ee6a by Bryce McKinlay Committed by Bryce McKinlay

re PR java/18119 (Private inner class is visible when it shouldn't be)

2005-07-07  Bryce McKinlay  <mckinlay@redhat.com>

	PR java/18119
	* parse.y (inner_class_accessible): New function. Logic moved from
	check_inner_class_access.
	(check_inner_class_access): Use inner_class_accessible.
	(resolve_inner_class): Simplify arguments. Create circularity hash
	here. Keep looking for classes if we found one that was
	inaccessible. Return the inaccessible class only if there is no other
	match.
	(do_resolve_class): Update for new resolve_inner_class arguments.
	Don't create circularity_hash here.

From-SVN: r101715
parent 90475fe0
2005-07-07 Bryce McKinlay <mckinlay@redhat.com> 2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
PR java/18119
* parse.y (inner_class_accessible): New function. Logic moved from
check_inner_class_access.
(check_inner_class_access): Use inner_class_accessible.
(resolve_inner_class): Simplify arguments. Create circularity hash
here. Keep looking for classes if we found one that was inaccessible.
Return the inaccessible class only if there is no other match.
(do_resolve_class): Update for new resolve_inner_class arguments.
Don't create circularity_hash here.
2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
PR java/21045 PR java/21045
* parse.y (add_exception_to_throws): New function. * parse.y (add_exception_to_throws): New function.
(purge_unchecked_exceptions): Removed. (purge_unchecked_exceptions): Removed.
......
2005-07-07 Bryce McKinlay <mckinlay@redhat.com> 2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.jacks/jacks.xfail: Remove 6.5.5.1-nested-4,
6.5.5.1-nested-7, 6.5.5.1-nested-16, 6.5.5.1-nested-17.
2005-07-07 Bryce McKinlay <mckinlay@redhat.com>
* testsuite/libjava.compile/PR21045.java: New test. * testsuite/libjava.compile/PR21045.java: New test.
* testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1, * testsuite/libjava.jacks/jacks.xfail: Remove 15.9.5.1-exception-1,
15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7. 15.9.5.1-exception-3, 8.3.2-abrupt-6, 8.3.2-abrupt-7.
......
...@@ -466,14 +466,10 @@ ...@@ -466,14 +466,10 @@
6.5.5.1-import-2 6.5.5.1-import-2
6.5.5.1-import-3 6.5.5.1-import-3
6.5.5.1-nested-14 6.5.5.1-nested-14
6.5.5.1-nested-16
6.5.5.1-nested-17
6.5.5.1-nested-19 6.5.5.1-nested-19
6.5.5.1-nested-20 6.5.5.1-nested-20
6.5.5.1-nested-21 6.5.5.1-nested-21
6.5.5.1-nested-23 6.5.5.1-nested-23
6.5.5.1-nested-4
6.5.5.1-nested-7
6.5.5.1-nested-8 6.5.5.1-nested-8
6.5.5.1-nested-9 6.5.5.1-nested-9
6.5.5.2-type-4 6.5.5.2-type-4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment