You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Michael Dürig (JIRA)" <ji...@apache.org> on 2012/12/07 17:19:21 UTC
[jira] [Resolved] (OAK-302) Incorrect results when converting
binary values
[ https://issues.apache.org/jira/browse/OAK-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Dürig resolved OAK-302.
-------------------------------
Resolution: Fixed
Fix Version/s: 0.6
Assignee: Michael Dürig
This has been fixed along with the changes in OAK-346 and OAK-350.
> Incorrect results when converting binary values
> -----------------------------------------------
>
> Key: OAK-302
> URL: https://issues.apache.org/jira/browse/OAK-302
> Project: Jackrabbit Oak
> Issue Type: Bug
> Components: jcr
> Reporter: Michael Dürig
> Assignee: Michael Dürig
> Fix For: 0.6
>
>
> {code}
> Value bin = valueFactory.createValue("123", PropertyType.BINARY);
> System.out.println(bin.getString());
> System.out.println(bin.getLong());
> System.out.println(bin.getDouble());
> {code}
> results in
> {code}
> 123
> 3313233
> 3313233.0
> {code}
> it should however be
> {code}
> 123
> 123
> 123.0
> {code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira