[
https://issues.apache.org/jira/browse/JENA-437?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13633171#comment-13633171
]
Hudson commented on JENA-437:
-----------------------------
Integrated in Jena__Development_Test #617 (See
[https://builds.apache.org/job/Jena__Development_Test/617/])
JENA-437
Modify XSDDataType.convertCalendar(Calendar) to create internal values
that are compatible with those produced by string paring the
equivalent lexical form. (Revision 1468525)
Result = SUCCESS
andy :
Files :
*
/jena/trunk/jena-core/src/main/java/com/hp/hpl/jena/datatypes/xsd/XSDDateTime.java
*
/jena/trunk/jena-core/src/test/java/com/hp/hpl/jena/graph/test/TestDateTime.java
> Literals created from a Calendar object do not round-triple through
> serialization.
> ----------------------------------------------------------------------------------
>
> Key: JENA-437
> URL: https://issues.apache.org/jira/browse/JENA-437
> Project: Apache Jena
> Issue Type: Bug
> Components: Datatypes
> Affects Versions: Jena 2.10.0
> Reporter: Andy Seaborne
> Assignee: Andy Seaborne
> Fix For: Jena 2.10.1
>
>
> Processing Calendar values does not produce the same ms/mscale values as
> processing the same lexical form.
> Calendar cal=GregorianCalendar.getInstance();
> cal.setTimeInMillis(1366126807300L);
> //String lex = "2013-04-16T15:40:07.3Z" ;
>
> Literal lit1 = ResourceFactory.createTypedLiteral(cal) ;
> Literal lit2 =
> ResourceFactory.createTypedLiteral(lit1.getLexicalForm(), lit1.getDatatype())
> ;
>
> System.out.println(lit1) ;
> System.out.println(lit2) ;
> Assert.assertEquals(lit1, lit2) ;
> Assert.assertEquals("hash code: ", lit1.hashCode(), lit2.hashCode());
--
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