From a536b5f21f00f5c32b15d5d349de125a92cce675 Mon Sep 17 00:00:00 2001 From: apbianco Date: Tue, 7 Mar 2000 06:25:14 +0000 Subject: 2000-03-06 Bryce McKinlay * typeck.c (lookup_do): Search superinterfaces first when looking up an interface method. From Godmar Back 2000-03-02 Alexandre Petit-Bianco * java-tree.h (lookup_argument_method2): Declared. (safe_layout_class): Prototype moved from parse.h. * parse.h (safe_layout_class): Prototype moved to java-tree.h. * parse.y (java_check_regular_methods): Local `super_class' gone. Call lookup_argument_method2 instead of lookup_argument_method. Perform modifier match for methods found declared in implemented interfaces. Fixed indentation problem. Overriding/hiding error report to take place only for methods found in classes. * typeck.c (lookup_argument_method): Changed leading comment. Re-written by calling lookup_do. (lookup_argument_method2): New function. (lookup_java_method): Re-written by calling lookup_do. (lookup_do): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@32376 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/java-tree.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index 146893a4b3f..629061f0e1d 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -510,6 +510,7 @@ extern tree lookup_class PARAMS ((tree)); extern tree lookup_java_constructor PARAMS ((tree, tree)); extern tree lookup_java_method PARAMS ((tree, tree, tree)); extern tree lookup_argument_method PARAMS ((tree, tree, tree)); +extern tree lookup_argument_method2 PARAMS ((tree, tree, tree)); extern tree promote_type PARAMS ((tree)); extern tree get_constant PARAMS ((struct JCF*, int)); extern tree get_name_constant PARAMS ((struct JCF*, int)); @@ -665,6 +666,7 @@ extern char* open_class PARAMS ((char *, struct JCF *, int, const char *)); # endif /* JCF_USE_STDIO */ #endif void java_debug_context PARAMS ((void)); +void safe_layout_class PARAMS ((tree)); extern tree get_boehm_type_descriptor PARAMS ((tree)); -- cgit v1.2.3