commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Colebourne" <scolebou...@btopenworld.com>
Subject Re: [lang] MethodUtils
Date Sat, 02 Nov 2002 13:41:04 GMT
From: "robert burrell donkin" <robertburrelldonkin@blueyonder.co.uk>
> i don't want to support two implementations. i want to create a correct
> implementation in lang that can be used by beanutils and digester. then i
> can deprecate the MethodUtils in beanutils and leave it to rot.
+1

> my main issue with the current MethodUtils API is that it not precise in
> it's definition of expected behaviour. the API does not say 'this methods
> finds conforms to the JLS spec'. since these methods can be called
> directly (rather than just as part of beanutils or digester where the
> required behaviour is clear), this lack precision means that people may
> rely on these features. therefore changing the algorithm might break their
> code.

The comments in [lang] MethodUtils etc. should be tightened. We offer the
equivalent of:
 getMethod() accessible
 getDeclaredMethod() accessible
 getMethod() ignoring scope
 getDeclaredMethod() ignoring scope

The first two should follow the JLS spec. The last two we get to define what
happens.

Stephen


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message