[cp-patches] [PATCH] Fix java.lang.Class field and method API for null names
penberg at kernel.org
Mon Dec 13 12:41:19 UTC 2010
On Mon, Dec 13, 2010 at 12:08 PM, Andrew Haley <aph at redhat.com> wrote:
> On 12/12/2010 11:46 AM, Pekka Enberg wrote:
>> This patch fixes Class getDeclaredField, getDeclaredMethod, getField, and
>> getMethod API to throw NullPointerException if given name is "null".
> Thanks, but two things:
> a. What happens with the current code base?
We throw NoSuchFieldException or NoSuchMethodException. I saw that
because of a test case we had written in Malva which has very strict
> b. We need a change log entry.
OK, I'm sorry I'm having some difficulties adjusting to GNU style of
working. I'll update the patch and resend.
More information about the Classpath-patches