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'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"><<a href=3D"mailto:[email protected]">[email protected]</a>>= ;</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 <<a href=3D"mailto:[email protected]">[email protected]</a>>= ; wrote:<br> > OK, but you know the fragment I showed you is necessary to aid debuggi= ng<br> > 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<java.lang.String><br> <br> That's just using the new Generic<List<String>>() {} 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--