What about the option of having CGLIB totally disabled? Is this
targeted for 2.0 or was it later? The reason I ask is that I can foresee
problems copying annotations to sub-classes. Copying "marker
annotations" should work just fine but if an annotation processor agent
scanning for non-market annotations, which you end up copying, I'm
thinking it might end up modifying your CGLIB proxies by mistake.
Gili
Chris Nokleberg wrote:
> No secret version, just the latest. CGLIB still runs on 1.2+ and
> generates 1.2 bytecode. I plan to look into copying annotations to
> generated subclasses as a option off by default. I did once before
> (years ago) and it didn't pan out but honestly I don't remember why.
>
> On Oct 30, 7:21 am, "Brian McCallister" <[EMAIL PROTECTED]> wrote:
>> Funny you mention this, I just wrote a bunch of stuff to search the
>> class hierarchy for method annotations -- luckily it only needs to be
>> done once per method, but it is less than pleasant.
>>
>> I would consider it to be correct for Guice to add the annotations to
>> its generated proxies, but IIRC cglib doesn't generate things beyond
>> 1.4 -- unless guice is using a super-secret version Chris hasn't told
>> us about yet!
>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---