public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
From: Bryce McKinlay <bryce@waitaki.otago.ac.nz>
To: java@gcc.gnu.org, gcc-patches@gcc.gnu.org
Subject: Java: Fix for PR 6294
Date: Mon, 15 Apr 2002 16:49:00 -0000	[thread overview]
Message-ID: <3CBB5ED9.1080808@waitaki.otago.ac.nz> (raw)

[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

This fixes java/6294. Private inner interfaces are legal. We still don't 
set the correct access flags for generated classes, but this at least 
allows code that declares a private interface to compile.

Built libjava and ran testsuite with no regressions.

OK to commit?

Bryce.


[-- Attachment #2: PR6294.patch --]
[-- Type: text/plain, Size: 870 bytes --]

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

	* parse.h (INNER_INTERFACE_MODIFIERS): Allow ACC_PRIVATE for inner
	interfaces.

Index: parse.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/java/parse.h,v
retrieving revision 1.83
diff -u -r1.83 parse.h
--- parse.h	26 Mar 2002 18:59:04 -0000	1.83
+++ parse.h	15 Apr 2002 23:10:24 -0000
@@ -80,7 +80,8 @@
 			 ACC_STATIC|ACC_FINAL|ACC_SYNCHRONIZED|ACC_NATIVE| \
 			 ACC_STRICT
 #define INTERFACE_MODIFIERS ACC_PUBLIC|ACC_ABSTRACT|ACC_STRICT
-#define INTERFACE_INNER_MODIFIERS ACC_PUBLIC|ACC_PROTECTED|ACC_ABSTRACT|ACC_STATIC
+#define INTERFACE_INNER_MODIFIERS ACC_PUBLIC|ACC_PROTECTED|ACC_ABSTRACT| \
+				  ACC_STATIC|ACC_PRIVATE
 #define INTERFACE_METHOD_MODIFIERS ACC_PUBLIC|ACC_ABSTRACT
 #define INTERFACE_FIELD_MODIFIERS ACC_PUBLIC|ACC_STATIC|ACC_FINAL
 

             reply	other threads:[~2002-04-15 23:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-04-15 16:49 Bryce McKinlay [this message]
2002-04-17  1:52 ` Alexandre Petit-Bianco

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CBB5ED9.1080808@waitaki.otago.ac.nz \
    --to=bryce@waitaki.otago.ac.nz \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=java@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).