You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by "Dave Brosius (JIRA)" <ji...@apache.org> on 2010/11/25 17:40:14 UTC
[jira] Updated: (CMIS-284) [patch] fix class cast exception
[ https://issues.apache.org/jira/browse/CMIS-284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dave Brosius updated CMIS-284:
------------------------------
Attachment: classcast_ex.diff
> [patch] fix class cast exception
> --------------------------------
>
> Key: CMIS-284
> URL: https://issues.apache.org/jira/browse/CMIS-284
> Project: Chemistry
> Issue Type: Bug
> Components: opencmis-server-inmemory
> Environment: ubuntu 10.10 java 1.6.17
> Reporter: Dave Brosius
> Priority: Minor
> Attachments: classcast_ex.diff
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> code attempts to cast a Long to a Double.
> - return Double.valueOf(((Integer) lValue).doubleValue()).compareTo((Double) rVal);
> + return Double.valueOf(((Integer) lValue).doubleValue()).compareTo(Double.valueOf(((Long)rVal).longValue()));
> patch fixes
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.