diff options
author | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-06-26 21:30:18 -0700 |
---|---|---|
committer | Alexandre Petit-Bianco <apbianco@gcc.gnu.org> | 2000-06-26 21:30:18 -0700 |
commit | cf1748bfce3d254bfd8bad027ab55e25793ce2fc (patch) | |
tree | c2d03eb4b63c497be0beb8cbe569f96cb6890ed4 /gcc/java/class.c | |
parent | 047142d32ee7988c4715e6784fd0fe228db7caa8 (diff) | |
download | gcc-cf1748bfce3d254bfd8bad027ab55e25793ce2fc.zip gcc-cf1748bfce3d254bfd8bad027ab55e25793ce2fc.tar.gz gcc-cf1748bfce3d254bfd8bad027ab55e25793ce2fc.tar.bz2 |
[multiple changes]
2000-06-23 Alexandre Petit-Bianco <apbianco@cygnus.com>
* class.c (set_super_info): Handle ACC_PRIVATE for (inner)
classes.
* java-tree.h (TYPE_PRIVATE_INNER_CLASS): New macro.
(struct lang_type): New field `pic.'
(CLASS_PRIVATE): New macro.
* parse.y (check_inner_class_access): New function.
(jdep_resolve_class): Call it.
2000-06-09 Bryce McKinlay <bryce@albatross.co.nz>
* parse.y (register_fields): Permit static fields in inner classes
if they are final. Fix for PR gcj/255.
(These patches are fixes to the PR #224 and #255:
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00158.html
http://sourceware.cygnus.com/ml/java-prs/2000-q2/msg00287.html)
From-SVN: r34725
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index dc5d16a..d719f04 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -400,6 +400,7 @@ set_super_info (access_flags, this_class, super_class, interfaces_count) if (access_flags & ACC_INTERFACE) CLASS_INTERFACE (class_decl) = 1; if (access_flags & ACC_ABSTRACT) CLASS_ABSTRACT (class_decl) = 1; if (access_flags & ACC_STATIC) CLASS_STATIC (class_decl) = 1; + if (access_flags & ACC_PRIVATE) CLASS_PRIVATE (class_decl) = 1; } /* Return length of inheritance chain of CLAS, where java.lang.Object is 0, |