[ https://issues.apache.org/jira/browse/JENA-363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13529809#comment-13529809 ]
Hudson commented on JENA-363: ----------------------------- Integrated in Jena__Development_Test #326 (See [https://builds.apache.org/job/Jena__Development_Test/326/]) JENA-363 : Fix to integer handling for absolute values between 2^56 and 2^63 (Revision 1420608) Result = SUCCESS andy : Files : * /jena/trunk/jena-tdb/ReleaseNotes.txt * /jena/trunk/jena-tdb/src/main/java/com/hp/hpl/jena/tdb/store/IntegerNode.java * /jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/nodetable/TestCodec.java * /jena/trunk/jena-tdb/src/test/java/com/hp/hpl/jena/tdb/store/TestNodeId.java > TDB round trip failures on 63bit integers > ----------------------------------------- > > Key: JENA-363 > URL: https://issues.apache.org/jira/browse/JENA-363 > Project: Apache Jena > Issue Type: Bug > Components: TDB > Affects Versions: TDB 0.9.4 > Reporter: Dave Reynolds > > The following example code attempts to store a large (63 bit) xsd:integer in > a TDB instance. > public void temp() throws Exception { > String BASE = "http://example.com/test#"; > String lex63 = "5823355717404272516"; > Dataset ds = TDBFactory.createDataset("data/tdb"); > Model m = ds.getDefaultModel(); > Literal l = m.createTypedLiteral(lex63, XSDDatatype.XSDinteger); > Resource r = m.createResource(BASE + "i").addProperty(RDF.value, l); > System.out.println("Val = " + r.getProperty(RDF.value).getObject()); > } > This returns: > Val = -13309399667890300^^http://www.w3.org/2001/XMLSchema#integer > A similar truncation occurs for xsd:long but strangely not for xsd:int. -- 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