Re: [picocontainer-dev] JSR330 work progress

Paul Hammant <[email protected]> Wed, 4 Aug 2010 09:52:30 -0500
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
--00163646c37e461c80048d009535
Content-Type: text/plain; charset=ISO-8859-1

I don't want to look at MyClass$1 in a debugger :)

On Wed, Aug 4, 2010 at 9:29 AM, Mark Hobson <[email protected]> wrote:

> On 4 August 2010 15:13, Paul Hammant <[email protected]> wrote:
> > OK, but you know the fragment I showed you is necessary to aid debugging
> > right?  Anon subclasses of Generic lack clarity when viewed in a
> debugger.
>
> In the debugger I see the anonymous class name of the form MyClass$1
> but the toString is the actual type, e.g.
> java.util.List<java.lang.String>
>
> That's just using the new Generic<List<String>>() {} syntax.  What
> benefits does Generic.get(generic.getType()) give you?
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

--00163646c37e461c80048d009535
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

I don&#39;t want to look at=A0MyClass$1 in a debugger :)<br><br><div class=
=3D"gmail_quote">On Wed, Aug 4, 2010 at 9:29 AM, Mark Hobson <span dir=3D"l=
tr">&lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt=
;</span> wrote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex;"><div class=3D"im">On 4 August 2010 15:13, P=
aul Hammant &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt=
; wrote:<br>

&gt; OK, but you know the fragment I showed you is necessary to aid debuggi=
ng<br>
&gt; right? =A0Anon subclasses of Generic lack clarity when viewed in a deb=
ugger.<br>
<br>
</div>In the debugger I see the anonymous class name of the form MyClass$1<=
br>
but the toString is the actual type, e.g.<br>
java.util.List&lt;java.lang.String&gt;<br>
<br>
That&#39;s just using the new Generic&lt;List&lt;String&gt;&gt;() {} syntax=
. =A0What<br>
benefits does Generic.get(generic.getType()) give you?<br>
<div><div></div><div class=3D"h5"><br>
Mark<br>
<br>
---------------------------------------------------------------------<br>
To unsubscribe from this list, please visit:<br>
<br>
 =A0 =A0<a href=3D"http://xircles.codehaus.org/manage_email" target=3D"_bla=
nk">http://xircles.codehaus.org/manage_email</a><br>
<br>
<br>
</div></div></blockquote></div><br>

--00163646c37e461c80048d009535--