diff options
author | Pekka Enberg <penberg@kernel.org> | 2011-01-21 19:59:14 +0000 |
---|---|---|
committer | Pekka Enberg <penberg@kernel.org> | 2011-01-21 19:59:14 +0000 |
commit | 619328402e3b911276ec054ea5654b6e0b620934 (patch) | |
tree | 475882187082bd58997558c746ee63b253f248e3 /ChangeLog | |
parent | 75fa6e7bf636b038835dbb63c133c7e1b79cd048 (diff) | |
download | classpath-619328402e3b911276ec054ea5654b6e0b620934.tar.gz |
Fix java.lang.Class field and method API for null names
2011-01-21 Pekka Enberg <penberg@kernel.org>
* java/lang/Class.java:
(getDeclaredField): Throw NullPointerException instead of
NoSuchFieldException if name is null.
(getField): Likewise.
(getDeclaredMethod): Throw NullPointerException instead of
NoSuchMethodException if name is null.
(getMethod): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +2011-01-21 Pekka Enberg <penberg@kernel.org> + + * java/lang/Class.java: + (getDeclaredField): Throw NullPointerException instead of + NoSuchFieldException if name is null. + (getField): Likewise. + (getDeclaredMethod): Throw NullPointerException instead of + NoSuchMethodException if name is null. + (getMethod): Likewise. + 2010-12-25 Andrew John Hughes <ahughes@redhat.com> PR classpath/42390 |