Re: Some java questions

Keith Seitz
2008-09-09T23:36:38Z

Tom Tromey wrote:

> To support Java 1.5, we had to add return types to name mangling.
> These are needed due to covariant return types.

Ah, okay, that explains a lot.

> What you are seeing here is just how the demangler chooses to print
> this information. E.g., when I 'nm --demangle=java' a simple java
> program, I see:
>
> 0804891e T h.main(java.lang.String[])void
> U java.lang.Object.toString()java.lang.String
> [etc]

Yuck. Nonetheless, it looks like that's the status quo, and I need to
fix it. I'll also look into either fixing the "info func" printout or at
least add a test case for that so that it doesn't disappear.

Keith