This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gcjx] Patch: FYI: enum constant's package


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 ());


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]