cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Valentin Mayamsin (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-5517) Incorrect check for VOID type
Date Thu, 23 Jan 2014 19:36:38 GMT
Valentin Mayamsin created CXF-5517:
--------------------------------------

             Summary: Incorrect check for VOID type
                 Key: CXF-5517
                 URL: https://issues.apache.org/jira/browse/CXF-5517
             Project: CXF
          Issue Type: Bug
            Reporter: Valentin Mayamsin


There are multiple occurrences in CXF code base for both server and client side which incorrectly
deals with VOID return type. For example: 

method.getReturnType() == Void.class 

This fails in case of primitive VOID: 

method.getReturnType() => void.class 

The correct way of checking for VOID is: 

method.getReturnType().equals(Void.TYPE)




--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Mime
View raw message