[ 
https://issues.apache.org/jira/browse/JENA-733?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15956232#comment-15956232
 ] 

ASF subversion and git services commented on JENA-733:
------------------------------------------------------

Commit 0a3675ac78c90eded615ac8e28d5f3b7afcc8a63 in jena's branch 
refs/heads/master from [[email protected]]
[ https://git-wip-us.apache.org/repos/asf?p=jena.git;h=0a3675a ]

JENA-733 add documentation for narrower data type case


> Long typed literals report class java.lang.Long but return java.lang.Integer
> ----------------------------------------------------------------------------
>
>                 Key: JENA-733
>                 URL: https://issues.apache.org/jira/browse/JENA-733
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: RDF API
>    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.3.15#6346)

Reply via email to