commit | fb6a7e7788b976dc53f6b2ff1e0bdb9f467d4987 | [log] [tgz] |
---|---|---|
author | Michael Buck <mbuck77@gmail.com> | Tue Dec 22 15:12:14 2020 -0500 |
committer | GitHub <noreply@github.com> | Tue Dec 22 15:12:14 2020 -0500 |
tree | 7fe3a7199922c07f2ac92ce1e030d855aaa4dd50 | |
parent | f22dbf039994cba8248698ae1c2a9d8111ebf717 [diff] |
[LANG-1544] MethodUtils.invokeMethod NullPointerException in case of null in args list (#680) * LANG-1544: - Null guards in place to handle one or more nulls specified as one of the parameters of the method to invoke. - Check for an exact match of the actual parameter types against all of the methods on the class. This prevents picking an "upcasted" method (i.e. int specified but a method with a double is chosen). - Throw an IllegalStateException with a helpful message if multiple candidate methods were found. This happens when multiple Methods had the same "distance" from the desired parameter types. Before this change the algorithm would just chose the first one. - Tests for the above. Co-authored-by: mike.buck@pb.com <mike.buck@pb.com>
Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang.
More information can be found on the Apache Commons Lang homepage. The Javadoc can be browsed. Questions related to the usage of Apache Commons Lang should be posted to the user mailing list.
You can download source and binaries from our download page.
Alternatively you can pull it from the central Maven repositories:
<dependency> <groupId>org.apache.commons</groupId> <artifactId>commons-lang3</artifactId> <version>3.11</version> </dependency>
We accept Pull Requests via GitHub. The developer mailing list is the main channel of communication for contributors. There are some guidelines which will make applying PRs easier for us:
mvn clean test
.If you plan to contribute on a regular basis, please consider filing a contributor license agreement. You can learn more about contributing via GitHub in our contribution guidelines.
This code is under the Apache Licence v2.
See the NOTICE.txt
file for required notices and attributions.
You like Apache Commons Lang? Then donate back to the ASF to support the development.
#apache-commons
IRC channel on irc.freenode.org