You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jena.apache.org by Grant Pax <gr...@fwep.twostewards.com> on 2014/12/30 14:49:47 UTC

build failure

Any idea why I might get the following test failures?:

Results :

Failed tests: 
  TestUtils.testCalendarToXSDTimeString:56 expected:<[13]:32:01.000+01:00> but was:<[08]:32:01.000+01:00>
  TestUtils.testCalendarToXSDDateTimeString:36 expected:<1984-03-22T[14]:32:01.000+00:00> but was:<1984-03-22T[09]:32:01.000+00:00>

I live on the east coast of the US and am indeed -5GMT. Is there a java compile setting I’m neglecting? I’m on OS X Yosemite. JDK 1.7.

Re: build failure

Posted by Grant Pax <gr...@fwep.twostewards.com>.
Thanks, Andy. I’m not using any mods so I’ll use your build. Nice catch with your test bed.

> On Dec 30, 2014, at 2:24 PM, Andy Seaborne <an...@apache.org> wrote:
> 
> On 30/12/14 13:49, Grant Pax wrote:
>> Any idea why I might get the following test failures?:
>> 
>> Results :
>> 
>> Failed tests:
>>   TestUtils.testCalendarToXSDTimeString:56 expected:<[13]:32:01.000+01:00> but was:<[08]:32:01.000+01:00>
>>   TestUtils.testCalendarToXSDDateTimeString:36 expected:<1984-03-22T[14]:32:01.000+00:00> but was:<1984-03-22T[09]:32:01.000+00:00>
>> 
>> I live on the east coast of the US and am indeed -5GMT. Is there a java compile setting I’m neglecting? I’m on OS X Yosemite. JDK 1.7.
>> 
> 
> Hi Grant,
> 
> Just to be clear in case it saves you time : if you are just using Jena without mods, you don't need to build it.
> 
> There is a nightly development build in this maven repo:
> https://repository.apache.org/content/repositories/snapshots/
> 
> and if you are downloading a binary distribution build directly:
> 
> https://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena
> 
> ------------------------
> 
> It looks like the tests (which are 4 week sold) are wrong and I see that our Jenkins builds are done in UTC so that does not catch it.
> 
> In essence Date.getTime returns an Epoch based Date and the Epoch is in GMT.
> 
> Good news - we now use FastDateFormat and there is a "format calendar" operation (unlike SimpleDateFormat) which avoids the Date-isms.
> 
> Thanks for the report and details,
> 
> 	Andy


Re: build failure

Posted by Andy Seaborne <an...@apache.org>.
On 30/12/14 13:49, Grant Pax wrote:
> Any idea why I might get the following test failures?:
>
> Results :
>
> Failed tests:
>    TestUtils.testCalendarToXSDTimeString:56 expected:<[13]:32:01.000+01:00> but was:<[08]:32:01.000+01:00>
>    TestUtils.testCalendarToXSDDateTimeString:36 expected:<1984-03-22T[14]:32:01.000+00:00> but was:<1984-03-22T[09]:32:01.000+00:00>
>
> I live on the east coast of the US and am indeed -5GMT. Is there a java compile setting I’m neglecting? I’m on OS X Yosemite. JDK 1.7.
>

Hi Grant,

Just to be clear in case it saves you time : if you are just using Jena 
without mods, you don't need to build it.

There is a nightly development build in this maven repo:
https://repository.apache.org/content/repositories/snapshots/

and if you are downloading a binary distribution build directly:

https://repository.apache.org/content/repositories/snapshots/org/apache/jena/apache-jena

------------------------

It looks like the tests (which are 4 week sold) are wrong and I see that 
our Jenkins builds are done in UTC so that does not catch it.

In essence Date.getTime returns an Epoch based Date and the Epoch is in GMT.

Good news - we now use FastDateFormat and there is a "format calendar" 
operation (unlike SimpleDateFormat) which avoids the Date-isms.

Thanks for the report and details,

	Andy