[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: Resolved
Project: el-spec
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major
Reporter: dougd Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified



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);

Comment by kchung [ 20/Feb/13 ]


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 Tue Oct 06 19:13:39 UTC 2015 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.