public inbox for java@gcc.gnu.org
 help / color / mirror / Atom feed
* Java: Fix for PR 6294
@ 2002-04-15 16:49 Bryce McKinlay
  2002-04-17  1:52 ` Alexandre Petit-Bianco
  0 siblings, 1 reply; 2+ messages in thread
From: Bryce McKinlay @ 2002-04-15 16:49 UTC (permalink / raw)
  To: java, gcc-patches

[-- 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
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Java: Fix for PR 6294
  2002-04-15 16:49 Java: Fix for PR 6294 Bryce McKinlay
@ 2002-04-17  1:52 ` Alexandre Petit-Bianco
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Petit-Bianco @ 2002-04-17  1:52 UTC (permalink / raw)
  To: Bryce McKinlay; +Cc: java, gcc-patches


Bryce McKinlay writes:

> OK to commit?

Yes. Thanks.

./A

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-04-17  8:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-15 16:49 Java: Fix for PR 6294 Bryce McKinlay
2002-04-17  1:52 ` Alexandre Petit-Bianco

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).