Uploaded image for project: 'Apache Jena'
  1. Apache Jena
  2. JENA-733

Long typed literals report class java.lang.Long but return java.lang.Integer

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Jena 2.11.2
    • None
    • RDF API
    • None

    Description

      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.

      Attachments

        Activity

          People

            kinow Bruno P. Kinoshita
            willow Benno Willoweit
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: