Re: [groovy-dev] sun.reflect.Reflection usage
Danno Ferrin wrote:
> Ok, I wrapped the usage inside of a reflected method, and return null in
> all cases the method is absent. This shuold work for gcj and harmony
> (if harmony needs it).
Were you expecting it to pass on the 1.4 test build?
Paul.
> On Wed, Jun 25, 2008 at 3:34 PM, Danno Ferrin <danno.ferrin@...
> <mailto:danno.ferrin@...>> wrote:
>
> ReflectionUtils is used in griffon and grape modules, and it is also
> sensitive to the callsite refactorings on occasion, which i why I
> put it in core (so I can see when the fail, and not wonder weeks
> later what happened when I get time to work on them again).
>
> As for the "sun spcific" part every JVM out there I can get my hands
> on has this API, so it's not really a sun specific JVM feature, just
> a sun specific name.
>
> Furthermore, the usage is wrapped inside of a catch Exception, so
> class loading failrues won't through spurious exceptions (the null
> fro the call, however, is something that should be anticipated
> wether or not the call can succeed).
>
> --Danno
>
>
> On Wed, Jun 25, 2008 at 10:31 AM, Guillaume Laforge
> <glaforge@...
<mailto:glaforge@...>> wrote:
>
> On Wed, Jun 25, 2008 at 6:21 PM, Alex Tkachman
> <alex.tkachman@...
<mailto:alex.tkachman@...>> wrote:
> > I noticed that we now use sun.reflect.Reflection.
> > Did I missed discussion how we will workaround on non-Sun
> platforms?
>
> Where is it being used?
> It's not a good idea to have such a tight dependency on one
> specific JVM.
>
> --
> Guillaume Laforge
> Groovy Project Manager
> G2One, Inc. Vice-President Technology
> http://www.g2one.com
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
> http://xircles.codehaus.org/manage_email
>
>
>
>
>
> --
> ------------------------------------------------------
> I'm Danno Ferrin, and I approved this message.
>
>
>
>
> --
> ------------------------------------------------------
> I'm Danno Ferrin, and I approved this message.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email