Andy Seaborne created JENA-437:
----------------------------------

             Summary: 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


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

Reply via email to