Return-Path: X-Original-To: apmail-cxf-issues-archive@www.apache.org Delivered-To: apmail-cxf-issues-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1684F178FA for ; Fri, 3 Apr 2015 15:11:03 +0000 (UTC) Received: (qmail 16820 invoked by uid 500); 3 Apr 2015 15:11:02 -0000 Delivered-To: apmail-cxf-issues-archive@cxf.apache.org Received: (qmail 16372 invoked by uid 500); 3 Apr 2015 15:11:01 -0000 Mailing-List: contact issues-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list issues@cxf.apache.org Received: (qmail 16205 invoked by uid 99); 3 Apr 2015 15:11:01 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Apr 2015 15:11:01 +0000 Date: Fri, 3 Apr 2015 15:11:01 +0000 (UTC) From: "Sergey Beryozkin (JIRA)" To: issues@cxf.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Reopened] (CXF-6322) AbstractSearchConditionParser not working with UUID fields MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/CXF-6322?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sergey Beryozkin reopened CXF-6322: ----------------------------------- > AbstractSearchConditionParser not working with UUID fields > ---------------------------------------------------------- > > Key: CXF-6322 > URL: https://issues.apache.org/jira/browse/CXF-6322 > Project: CXF > Issue Type: Bug > Components: JAX-RS > Affects Versions: 3.0.4 > Reporter: Vjacheslav Borisov > Assignee: Sergey Beryozkin > Priority: Minor > > Using of FIQL expression like bean.uuid=91d6350e-4bf5-42e8-9828-33767c6cb384 > Where uuid is of type java.util.UUID > leads to java.lang.InstantiationException: java.util.UUID > at line 194: nextObject = returnType.newInstance(); > Becouse java.util.UUID does not have no-arg constructor. > Istead of this InjectionUtils.isPrimitive should return true for java.util.UUID, then execution path should go to if (lastTry) { branch > and convertStringToPrimitive is working correctly with java.util.UUID > Quick fix is to change line 168 - add " ||returnType.equals(java.util.UUID.class): " > boolean isPrimitive = !returnCollection > && InjectionUtils.isPrimitive(returnType) || returnType.isEnum() ||returnType.equals(java.util.UUID.class); -- This message was sent by Atlassian JIRA (v6.3.4#6332)