cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Huss <johnth...@gmail.com>
Subject Re: Java 8
Date Fri, 21 Mar 2014 15:52:20 GMT
On Fri, Mar 21, 2014 at 9:51 AM, Andrus Adamchik <andrus@objectstyle.org>wrote:

> Oh, nice! I missed the announcement.
>
> >> [ERROR] * Implementation of {@link #BatchQueryBuilderFactory}, which
> uses
>
> Should be BatchTranslator. This is a recent refactoring.
>
> >> [ERROR]
> >>
> /Users/john/cayenne/modeler/cayenne-modeler-mac-ext/src/main/java/org/apache/cayenne/modeler/osx/OSXPlatformInitializer.java:[39,21]
> >> error: package com.apple.eawt does not exist
>
> Yeah, this worked with Oracle Java 7, so there's gotta be a way to make it
> work.
>
> I wonder if we use this occasion to stop supporting Java 6 on 3.2. This is
> such an old news. Anyways just throwing it here to see if anyone has strong
> objections.
>

We're still running Java 6 mostly because there just wasn't a compelling
reason to move to Java 7.  So I'd be reluctant to drop support too quickly.
 But Java 8 looks very nice; if dropping support for Java 6 speeds up the
process of getting to Java 8 then it might be worth it.

Java 8 also includes the new Date & Time API (JSR-310), which should
probably be supported in Cayenne eventually.  It's very similar to Joda
from what I hear.


> On Mar 21, 2014, at 5:38 PM, John Huss <johnthuss@gmail.com> wrote:
>
> > Still Java 8 just came out I decided to try and compile Cayenne using it
> > (oracle version).  The code compiled without a problem.  There were a
> bunch
> > of javadoc issues that caused that part to fail so I fixed all those
> except
> > this one (since I'm not sure what to change it to):
> >
> > [ERROR]
> >>
> /Users/john/cayenne/docs/doc/target/sources/org/apache/cayenne/access/translator/batch/SoftDeleteTranslatorFactory.java:28:
> >> error: reference not found
> >> [ERROR] * Implementation of {@link #BatchQueryBuilderFactory}, which
> uses
> >> 'soft' delete
> >> [ERROR] ^
> >
> >
> > Then the modeler failed to build on Mac because it couldn't find
> > com.apple.eawt:
> >
> >> [ERROR] Failed to execute goal
> >> org.apache.maven.plugins:maven-compiler-plugin:2.3.2:compile
> >> (default-compile) on project cayenne-modeler-mac-ext: Compilation
> failure:
> >> Compilation failure:
> >> [ERROR]
> >>
> /Users/john/cayenne/modeler/cayenne-modeler-mac-ext/src/main/java/org/apache/cayenne/modeler/osx/OSXPlatformInitializer.java:[39,21]
> >> error: package com.apple.eawt does not exist
> >
> > This package (and the classes) DOES exist in rt.jar, so for some reason
> it
> > is just not finding it.  If I comment out the apple code then the entire
> > build completes successfully.
> >
> >
> > John
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message