[webbeans-dev] Supporting proxies with no no-arg constructors in RI

Pete Muir pmuir at redhat.com
Mon May 18 06:22:25 EDT 2009


I created https://jira.jboss.org/jira/browse/WBRI-267 :-)

On 12 May 2009, at 07:49, Gavin King wrote:

> This is a really good idea.
>
> On Tue, May 12, 2009 at 1:11 AM, Jason T. Greene
> <jason.greene at redhat.com> wrote:
>> Hi Everyone,
>>
>> As a non-standard extension, I was thinking that we could support  
>> generation
>> proxies of classes not containing no-arg constructors by using  
>> various
>> techniques that are supported by most JDKs.
>>
>> This would involve generating a proxy with a constructor call  
>> passing bogus
>> parameters. Then a JDK specific approach would be used to  
>> instantiate the
>> proxy class:
>>
>> Sun, IcedTea, Mac: Unsafe.allocateInstance() - The most efficient
>> Above + IBM, JRockit:  
>> ReflectionFactory.newConstructorForSerialization()
>>
>> --
>> Jason T. Greene
>> JBoss, a division of Red Hat
>> _______________________________________________
>> webbeans-dev mailing list
>> webbeans-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/webbeans-dev
>>
>
>
>
> -- 
> Gavin King
> gavin.king at gmail.com
> http://in.relation.to/Bloggers/Gavin
> http://hibernate.org
> http://seamframework.org
> _______________________________________________
> webbeans-dev mailing list
> webbeans-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/webbeans-dev

--
Pete Muir
http://www.seamframework.org
http://in.relation.to/Bloggers/Pete




More information about the weld-dev mailing list