From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9432 invoked by alias); 15 Apr 2002 23:14:36 -0000 Mailing-List: contact java-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: java-owner@gcc.gnu.org Received: (qmail 9414 invoked from network); 15 Apr 2002 23:14:35 -0000 Received: from unknown (HELO localhost.localdomain) (210.86.60.118) by sources.redhat.com with SMTP; 15 Apr 2002 23:14:35 -0000 Received: from waitaki.otago.ac.nz ([192.168.2.2]) by localhost.localdomain (8.11.2/8.11.2) with ESMTP id g3FMfPT25231; Tue, 16 Apr 2002 10:41:25 +1200 Message-ID: <3CBB5ED9.1080808@waitaki.otago.ac.nz> Date: Mon, 15 Apr 2002 16:49:00 -0000 From: Bryce McKinlay User-Agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:0.9.9+) Gecko/20020327 X-Accept-Language: en-us, en MIME-Version: 1.0 To: java@gcc.gnu.org, gcc-patches@gcc.gnu.org Subject: Java: Fix for PR 6294 Content-Type: multipart/mixed; boundary="------------000407020103020300020100" X-SW-Source: 2002-04/txt/msg00226.txt.bz2 This is a multi-part message in MIME format. --------------000407020103020300020100 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Content-length: 281 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. --------------000407020103020300020100 Content-Type: text/plain; name="PR6294.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="PR6294.patch" Content-length: 870 2002-04-16 Bryce McKinlay * 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 --------------000407020103020300020100--