public inbox for java-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [gcjx] Patch: FYI: fix type variable signatures
@ 2005-12-21 19:01 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2005-12-21 19:01 UTC (permalink / raw)
  To: Java Patch List

I'm checking this in on the gcjx branch.

This fixes a buglet when generating a type variable signature.
If there was no bound we created an entry consisting of just ':'.
However that is not parseable.  Instead we must emit a bound of
Object in this case.

Tom

Index: ChangeLog
from  Tom Tromey  <tromey@redhat.com>
	* model/typevar.cc (get_formal_signature): Special-case empty
	bounds.

Index: model/typevar.cc
===================================================================
--- model/typevar.cc	(revision 107604)
+++ model/typevar.cc	(working copy)
@@ -162,7 +162,7 @@
     }
   // Handle the case where there were no bounds at all.
   if (bounds.empty ())
-    result += ":";
+    result += ":" + global->get_compiler ()->java_lang_Object ()->get_signature ();
   return result;
 }
 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-21 19:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-21 19:01 [gcjx] Patch: FYI: fix type variable signatures Tom Tromey

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