This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gcjx] Patch: FYI: enum constant's package
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 09 Nov 2005 17:49:46 -0700
- Subject: [gcjx] Patch: FYI: enum constant's package
- Reply-to: tromey at redhat dot com
I'm checking this in on the gcjx branch.
We need to set the compilation unit (and thus package) of an enum
constant when we create it.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* source/parse.cc (enum_body): Set compilation unit on enum
constant.
Index: source/parse.cc
===================================================================
--- source/parse.cc (revision 105944)
+++ source/parse.cc (working copy)
@@ -2950,6 +2950,7 @@
while (true)
{
ref_enum_constant c (new model_enum_constant (peek ()));
+ c->set_compilation_unit (unit);
c->set_name (identifier ());
if (peek () == TOKEN_OPEN_PAREN)
c->set_arguments (arguments ());