Skip to main content

[el-spec issues] [JIRA] Resolved: (EL_SPEC-10) API doc errors for javax.el.TypeConverter

  • From: "kchung (JIRA)" <jira-no-reply@...>
  • To: issues@...
  • Subject: [el-spec issues] [JIRA] Resolved: (EL_SPEC-10) API doc errors for javax.el.TypeConverter
  • Date: Wed, 20 Feb 2013 20:11:53 +0000 (GMT+00:00)
  • Auto-submitted: auto-generated


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

kchung resolved EL_SPEC-10.
---------------------------

    Resolution: Fixed

Fixed.

> API doc errors for javax.el.TypeConverter
> -----------------------------------------
>
>                 Key: EL_SPEC-10
>                 URL: http://java.net/jira/browse/EL_SPEC-10
>             Project: el-spec
>          Issue Type: Bug
>         Environment: N/A
>            Reporter: dougd
>            Assignee: kchung
>            Priority: Minor
>
> Here is the Example that we have provided in the API docs.
>      ELProcessor elp = new ELProcessor();
>      elp.getELManager().addELResolver(new TypeConverter() {
>          Object convertToType(ELContext context, Object obj, Class type) {
>              if (obj instanceof String) && type == MyDate.class) {
>                  context.setPropertyResoved(obj, type);
>                  return (obj == null)? null: new MyDate(obj.toString());
>              }
>              return null;
>          }
>       };
> Below I have put the various fixes in spelling and syntax.
>      ELProcessor elp = new ELProcessor();
>      elp.getELManager().addELResolver(new TypeConverter() {
>          Object convertToType(ELContext context, Object obj, Class type) {
>              if ((obj instanceof String) && type == MyDate.class) {         
>       <------ Added missing "("
>                  context.setPropertyResolved(obj, type);                    
>             <------ Fixed Spelling on Method call.
>                  return (obj == null)? null: new MyDate(obj.toString());
>              }
>              return null;
>          }
>       };

-- 
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-10) API doc errors for javax.el.TypeConverter

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