You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2014/06/28 18:45:25 UTC
[jira] [Commented] (JENA-733) Long typed literals in query results
are returned as integers
[ https://issues.apache.org/jira/browse/JENA-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14046917#comment-14046917 ]
Andy Seaborne commented on JENA-733:
------------------------------------
Hi Benno,
Thanks for the report - do you have a complete, minimal example? It is really helpful to have a sample of code that someone can very easily run without needing to add details which may be related to the issue at hand.
Specifically:
1. What is `l` in full?
2. What is the query and what kind of dataset or model is the query being made on?
> Long typed literals in query results are returned as integers
> --------------------------------------------------------------
>
> Key: JENA-733
> URL: https://issues.apache.org/jira/browse/JENA-733
> Project: Apache Jena
> Issue Type: Bug
> Components: ARQ
> Affects Versions: Jena 2.11.2
> Reporter: Benno Willoweit
> Priority: Minor
>
> This is my first bug report ever so I hope I get this right. When retrieving query results with ARQ, long values are returned as Integers:
> {{QuerySulution qs;}}
> {{Literal l = qs.getLiteral("myVar");}}
> {{l.getDatatype().getJavaClass(); //returns java.lang.Long which is correct}}
> {{l.getValue(); //returns a java.lang.Integer object but it should return a java.lang.Long object according to the docs}}
> I have this problem with ARQ 2.11.2 which does not exist in the "affects version" drop down.
--
This message was sent by Atlassian JIRA
(v6.2#6252)