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

BigDecimal literal created but not handled by Utils

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Jena 3.0.0
    • Fix Version/s: Jena 3.9.0
    • Component/s: Core
    • Labels:
      None

      Description

      If a Literal of type xsd:decimal is created the value is a BigDecimal. However, if such a Literal is passed into the com.ge.research.jena.Utils compareTypedLiterals method, the value is only checked for Float and Double so it defaults to being treated as Long, which can give erroneous results. I checked the current code base on github.com and this appears to still be an issue.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                andy Andy Seaborne
                Reporter:
                crapo Andrew Crapo
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: