I'm completely unfamiliar with Maven and SVN :-( but I gave it a shot.

Downloaded the SVN sources with Eclipse's import function and downloaded
Maven.

Got Maven running with "mvn clean install" in the Cayenne project folder.

The build often fails while testing cayenne-jdk1.5-unpublished but not
always and also not always at the same place ?

I think its timing issues, as it seems to build successfully if running in
the background / minimized.

Succesfully ran my app using cayenne-server-3.2M1.jar with JDK 8 and 7.

The Date cast exception doesn't occur anymore with the recompiled Cayenne :-)

Thanks it works.

P.S.  Maven gives me a warning:  File encoding has not been set, using Cp1252
How do I fix this ?  What should the encoding be ?  (I think this causes
DbImporterMojoTest to fail because '/' are expected but '\' are
encountered.)

Thanks again.


> Could you try grabbing the source of Cayenne and running the test suite in
> Java 8? I don't know what any of the developers has tried that yet. There
> have certainly been inconsistencies in the past in the JDBC libraries
> between different versions of Java.
>
> https://cayenne.apache.org/building-cayenne.html
>
>
> I see that JSR-310 [1] is finally scheduled to land in Java 8. I wonder if
> that is related to your problem?
>
>
> Ari
>
>
> [1] https://github.com/ThreeTen/threeten
>
>
> On 26/11/12 8:35pm, [email protected] wrote:
>> Over the weekend I tried running my app with jdk1.8 ea and found that
>> some
>> of the methods (in the auto package classes) that return a sql.Date then
>> throw a class cast exception complaining that it can't cast util.Date to
>> sql.Date !?
>>
>> However the app works fine in jdk1.7 ?
>>
>> It appears that the different java versions are returning a different
>> object for readProperty:
>>
>> jdk1.7  returns  sql.Date
>> jdk1.8  returns  util.Date
>>
>> Has anybody experienced something like this ?
>>
>> Thanks.
>>
>
> --
> -------------------------->
> Aristedes Maniatis
> GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A
>


Reply via email to