[ https://issues.apache.org/jira/browse/JENA-1583?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16568360#comment-16568360 ]
ASF GitHub Bot commented on JENA-1583: -------------------------------------- GitHub user afs opened a pull request: https://github.com/apache/jena/pull/454 JENA-1583: Rule system: Util.compare You can merge this pull request into a Git repository by running: $ git pull https://github.com/afs/jena rule-util Alternatively you can review and apply these changes as the patch at: https://github.com/apache/jena/pull/454.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #454 ---- commit 71acf2c534711527d4d4b0b55f9a584de492c791 Author: Andy Seaborne <andy@...> Date: 2018-08-03T14:42:10Z JENA-1583: Rule system: Util.compare commit 66b55319652c21597fac077f622b625c9407ea6b Author: Andy Seaborne <andy@...> Date: 2018-08-03T15:34:19Z Organize tests systematically ---- > BigDecimal literal created but not handled by Utils > --------------------------------------------------- > > Key: JENA-1583 > URL: https://issues.apache.org/jira/browse/JENA-1583 > Project: Apache Jena > Issue Type: Bug > Components: Core > Affects Versions: Jena 3.0.0 > Reporter: Andrew Crapo > Priority: Major > > 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. -- This message was sent by Atlassian JIRA (v7.6.3#76005)