cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Azitabh (JIRA)" <>
Subject [jira] [Created] (CXF-5688) Problem Parsing FIQL Involving Enums
Date Mon, 14 Apr 2014 12:21:16 GMT
Azitabh created CXF-5688:

             Summary: Problem Parsing FIQL Involving Enums
                 Key: CXF-5688
             Project: CXF
          Issue Type: Bug
            Reporter: Azitabh
            Priority: Critical

FIQL parser assumes that enums would be defined in all caps. 

In case Enums are not defined in all caps, InjectionUtils.convertStringToPrimitive(String
value, Class<?> cls) raises PropertyNotFoundException because it's converting the user
provided enum value to caps and calling ENUM.valueOf(UPPERCASE_STR).

ethod m  = cls.getMethod("valueOf", new Class[]{String.class});
return m.invoke(null, value.toUpperCase());

Since JAVA doesn't enforce enums to be all caps, I don't see any reason why FIQLParser should
assume this.

This message was sent by Atlassian JIRA

View raw message