[#EL_SPEC-9] ELProcessor.defineFunction methods do not check

advertisement
[EL_SPEC-9] ELProcessor.defineFunction methods do not check for null args...
Created: 05/Nov/12 Updated: 20/Feb/13 Resolved: 20/Feb/13
Status:
Project:
Component/s:
Affects
Version/s:
Fix Version/s:
Resolved
el-spec
None
None
Type:
Reporter:
Resolution:
Labels:
Remaining
Estimate:
Time Spent:
Original
Estimate:
Environment:
Bug
dougd
Fixed
None
Not Specified
None
Priority:
Assignee:
Votes:
Major
Unassigned
0
Not Specified
Not Specified
N/A
Description
API documentation states for both of the defineFunction methods that a NullPointerException
should be thrown if any arg is null. Niether on of the methods looks to be testing for null args.
Example below.
public void defineFunction(String prefix, String function, Method method) {
if (prefix == null || function == null || method == null)
{ <-- need to add something like this. throw new NullPointerException(); }
if (function.equals(""))
{ function = method.getName(); }
elManager.mapFunction(prefix, function, method);
}
Comments
Comment by kchung [ 20/Feb/13 ]
Fixed.
Note the spec has also been modified to also throw a NoSuchMethodException if the method is
not static. See the javadocs for detailed.
Generated at Fri Feb 05 11:28:13 UTC 2016 using JIRA 6.2.3#6260sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.
Download