Skip to main content

[el-spec issues] [JIRA] Resolved: (EL_SPEC-9) ELProcessor.defineFunction methods do not check for null args...

  • From: "kchung (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [el-spec issues] [JIRA] Resolved: (EL_SPEC-9) ELProcessor.defineFunction methods do not check for null args...
  • Date: Wed, 20 Feb 2013 19:44:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


     [ 
http://java.net/jira/browse/EL_SPEC-9?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

kchung resolved EL_SPEC-9.
--------------------------

    Resolution: Fixed

Fixed.

Note the spec has also been modified to also throw a NoSuchMethodException if 
the method is not static.  See the javadocs for detailed.

> ELProcessor.defineFunction methods do not check for null args...
> ----------------------------------------------------------------
>
>                 Key: EL_SPEC-9
>                 URL: http://java.net/jira/browse/EL_SPEC-9
>             Project: el-spec
>          Issue Type: Bug
>         Environment: N/A
>            Reporter: dougd
>
> 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);
>     }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://java.net/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[el-spec issues] [JIRA] Resolved: (EL_SPEC-9) ELProcessor.defineFunction methods do not check for null args...

kchung (JIRA) 02/20/2013
 
 
Close
loading
Please Confirm
Close