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

Tom Tromey tromey@redhat.com
Wed Nov 9 23:55:00 GMT 2005


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



More information about the Java-patches mailing list