Re: [picocontainer-dev] JSR330 work progress

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

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.

- Paul

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

> On 4 August 2010 14:40, Paul Hammant <[email protected]> wrote:
> > One of the things I'm doing in place is in DefaultPicoContainer is :-
> >         if (key instanceof Generic) {
> >             key = Generic.get(((Generic) key).getType());
> >         }
> > This unwrapping right ?
>
> Not really, that's the equivalent of:
>
>        if (key instanceof Generic) {
>            key = (Generic) key;
>        }
>
> By unwrapping I meant something like:
>
> Generic<List<String>> listStringGeneric = new Generic<List<String>>() {};
> Type listString = listStringGeneric.getType();
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

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

OK, but you know the fragment I showed you is necessary to aid debugging ri=
ght? =A0Anon subclasses of Generic lack clarity when viewed in a debugger.<=
div><br></div><div>- Paul<br><br><div class=3D"gmail_quote">On Wed, Aug 4, =
2010 at 9:11 AM, Mark Hobson <span dir=3D"ltr">&lt;<a href=3D"mailto:markho=
[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 14:40, P=
aul Hammant &lt;<a href=3D"mailto:[email protected]">[email protected]</a>&gt=
; wrote:<br>

&gt; One of the things I&#39;m doing in place is in DefaultPicoContainer is=
 :-<br>
&gt; =A0=A0 =A0 =A0 =A0if (key instanceof Generic) {<br>
&gt; =A0=A0 =A0 =A0 =A0 =A0 =A0key =3D Generic.get(((Generic) key).getType(=
));<br>
&gt; =A0=A0 =A0 =A0 =A0}<br>
&gt; This unwrapping right ?<br>
<br>
</div>Not really, that&#39;s the equivalent of:<br>
<br>
 =A0 =A0 =A0 =A0if (key instanceof Generic) {<br>
 =A0 =A0 =A0 =A0 =A0 =A0key =3D (Generic) key;<br>
 =A0 =A0 =A0 =A0}<br>
<br>
By unwrapping I meant something like:<br>
<br>
Generic&lt;List&lt;String&gt;&gt; listStringGeneric =3D new Generic&lt;List=
&lt;String&gt;&gt;() {};<br>
Type listString =3D listStringGeneric.getType();<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></div>

--0016363b9292d559d4048d0009e4--