diff options
author | Joerg Brunsmann <joerg.brunsmann@fernuni-hagen.de> | 2000-02-15 22:54:21 +0000 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-02-15 14:54:21 -0800 |
commit | a003f638eeb6ad379286d86e43a66bab17d9c96e (patch) | |
tree | 376d7b70ee87d6b80244dcca32c59bec159a17bc /gcc/java/parse.y | |
parent | abfb784400c0b14002eb09a26015e71426fc9c8a (diff) | |
download | gcc-a003f638eeb6ad379286d86e43a66bab17d9c96e.zip gcc-a003f638eeb6ad379286d86e43a66bab17d9c96e.tar.gz gcc-a003f638eeb6ad379286d86e43a66bab17d9c96e.tar.bz2 |
gjavah.c: Delete ACC_VISIBILITY define.
Mon Jan 18 14:30:09 2000 Joerg Brunsmann <joerg.brunsmann@fernuni-hagen.de>
* gjavah.c: Delete ACC_VISIBILITY define.
* jcf.h: Add ACC_VISIBILITY define.
* parse.y: final: rule tagged <value>.
(java_check_regular_methods): Use ACC_VISIBILITY define for
default package access check.
(local_variable_declaration_statement): Use final: rule.
From-SVN: r31992
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r-- | gcc/java/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 3ba506f..843d695 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -414,7 +414,7 @@ static tree package_list = NULL_TREE; %token STRING_LIT_TK CHAR_LIT_TK INT_LIT_TK FP_LIT_TK %token TRUE_TK FALSE_TK BOOL_LIT_TK NULL_TK -%type <value> modifiers MODIFIER_TK +%type <value> modifiers MODIFIER_TK final %type <node> super ID_TK identifier %type <node> name simple_name qualified_name @@ -1280,7 +1280,7 @@ local_variable_declaration_statement: local_variable_declaration: type variable_declarators { declare_local_variables (0, $1, $2); } -| modifiers type variable_declarators /* Added, JDK1.1 final locals */ +| final type variable_declarators /* Added, JDK1.1 final locals */ { declare_local_variables ($1, $2, $3); } ; @@ -4896,7 +4896,7 @@ java_check_regular_methods (class_decl) one that was found elsewhere. Do not issue this warning when the match was found in java.lang.Object. */ if (DECL_CONTEXT (found) != object_type_node - && ((aflags & 0x7) == 0) + && ((aflags & ACC_VISIBILITY) == 0) && !class_in_current_package (DECL_CONTEXT (found)) && DECL_NAME (found) != clinit_identifier_node && flag_not_overriding) |