jcf-write.c (get_access_flags): Return correct access flags for private and protected inner classes.

2002-08-08  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>

       * jcf-write.c (get_access_flags): Return correct access flags for
       private and protected inner classes.

From-SVN: r56146
This commit is contained in:
Bryce McKinlay 2002-08-09 03:52:23 +00:00 committed by Bryce McKinlay
parent b6ce26acc8
commit 097684ce62
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2002-08-08 Bryce McKinlay <bryce@waitaki.otago.ac.nz>
* jcf-write.c (get_access_flags): Return correct access flags for
private and protected inner classes.
2002-08-08 Nathan Sidwell <nathan@codesourcery.com>
* java/Make-lang.in (java.mostlyclean): Remove coverage files.

View File

@ -683,6 +683,10 @@ get_access_flags (decl)
flags |= ACC_INTERFACE;
if (CLASS_STATIC (decl))
flags |= ACC_STATIC;
if (CLASS_PRIVATE (decl))
flags |= ACC_PRIVATE;
if (CLASS_PROTECTED (decl))
flags |= ACC_PROTECTED;
if (ANONYMOUS_CLASS_P (TREE_TYPE (decl))
|| LOCAL_CLASS_P (TREE_TYPE (decl)))
flags |= ACC_PRIVATE;