commit | af12a6637be4cbb9366cd88cecd22cfc82087086 | [log] [tgz] |
---|---|---|
author | Elliott Hughes <enh@google.com> | Fri Aug 28 15:54:30 2009 -0700 |
committer | Elliott Hughes <enh@google.com> | Thu Sep 03 12:41:40 2009 -0700 |
tree | 3722484c0be3af39a5580ae943a41479a5a4da47 | |
parent | f7fb00865dd05c32aab5b968fd79ae0ef63e9d6c [diff] |
Fix Class.getConstructor("whatever", (Class[]) null). The RI treats null parameterTypes the same as an empty array. This behavior is specified for getMethod, but only implied for getConstructor. This patch: * Fixes getConstructor. * Improves javadoc for Class methods taking "Class... parameterTypes". * Adds tests for both getConstructor and getMethod (which was already correct). * Removes a line of debugging output to System.out. Bug: 1824973