[
https://issues.apache.org/jira/browse/JENA-1503?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16393528#comment-16393528
]
ASF GitHub Bot commented on JENA-1503:
--------------------------------------
GitHub user afs opened a pull request:
https://github.com/apache/jena/pull/379
Refactor tests; don't test for GregorianYear< 0
Follow on from JENA-1503.
This splits up some `TestTypeLiteral` tests and removes the old testing for
GregorianYear< 0 which didn't test correctly, and couldn't.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/afs/jena test_tidy
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jena/pull/379.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 #379
----
commit daf349022c2188345ba4630e4e074594b697bda2
Author: Andy Seaborne <andy@...>
Date: 2018-03-09T16:47:57Z
Refactor tests; don't test for GregorianYear< 0
----
> Bug in XSDDateTime toString
> ---------------------------
>
> Key: JENA-1503
> URL: https://issues.apache.org/jira/browse/JENA-1503
> Project: Apache Jena
> Issue Type: Bug
> Components: Datatypes
> Reporter: Derek Law
> Assignee: Andy Seaborne
> Priority: Major
> Labels: beginner, easyfix, newbie, patch
> Fix For: Jena 3.7.0
>
> Attachments: proposed_fix.txt
>
> Original Estimate: 0.1h
> Remaining Estimate: 0.1h
>
> toString() for the class org.apache.jena.datatypes.xsd.XSDDateTime generates
> incorrect output when year value is between -999 and -1.
> For example : the representation of date time "-0001-01-01T00:00:00" in
> XSDDateTime class has data array of (-1,1,1,0,0,0,0,0,0) and mask = 15.
> however, the toString() method incorrectly outputs "000-1-01-01T00:00:00"
> proposed fix attached.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)