You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cayenne.apache.org by John Huss <jo...@gmail.com> on 2014/03/21 15:38:31 UTC

Java 8

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

Re: Java 8

Posted by Mike Kienenberger <mk...@gmail.com>.
Unless there is a compelling reason, I would not stop supporting Java
6 on 3.2.   Most of the app servers out there still require Java 6
when I looked last month --
http://en.wikipedia.org/wiki/Comparison_of_application_servers

My primary client is once again considering switching from JPA to
Cayenne, and all of our Oracle app servers run Java 6.   More on this
possibility on a separate thread.

On Fri, Mar 21, 2014 at 10:51 AM, Andrus Adamchik
<an...@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.
>
> Andrus
>
>
>
> On Mar 21, 2014, at 5:38 PM, John Huss <jo...@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
>

Re: Java 8

Posted by Aristedes Maniatis <ar...@maniatis.org>.
On FreeBSD (which I track myself for work and on which many of the Jenkins slaves run) Java 8 is still in testing. I'd give it another month or so. But some of the Linux environments should have it if we bind our test runs to those slaves only.

In my own work, based on Cayenne 3.2, I'm not seeing any OSX/Java 8 issues. But I'm not running the Cayenne test suite, just our own.

Ari


On 2/04/2014 6:25pm, Andrus Adamchik wrote:
> Anyone knows if we have Java 8 on the CI server? Maybe we should add it to the 3.2 tests.. Another set of red balls to pay attention to :)
> 
> A.
> 
> 
> On Mar 21, 2014, at 6:52 PM, John Huss <jo...@gmail.com> wrote:
> 
>> On Fri, Mar 21, 2014 at 9:51 AM, Andrus Adamchik <an...@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 <jo...@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
>>>
>>>
> 

-- 
-------------------------->
Aristedes Maniatis
GPG fingerprint CBFB 84B4 738D 4E87 5E5C  5EFA EF6A 7D2E 3E49 102A

Re: Java 8

Posted by Andrus Adamchik <an...@objectstyle.org>.
Anyone knows if we have Java 8 on the CI server? Maybe we should add it to the 3.2 tests.. Another set of red balls to pay attention to :)

A.


On Mar 21, 2014, at 6:52 PM, John Huss <jo...@gmail.com> wrote:

> On Fri, Mar 21, 2014 at 9:51 AM, Andrus Adamchik <an...@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 <jo...@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
>> 
>> 


Re: Java 8

Posted by Andrus Adamchik <an...@objectstyle.org>.
On Mar 21, 2014, at 6:52 PM, John Huss <jo...@gmail.com> wrote:

> 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.

BTW, with DI we have a much easier mechanism to develop and maintain JDK-specific extensions. Previously we’d try to use some classpath magic to enable/disable JDK-specific features.

Now we'd just create a separate Maven module with a Cayenne DI Module class in it that bootstraps Java 8 stuff. Then a user would pass this module when creating his ServerRuntime. Very clean and deterministic.

> if dropping support for Java 6 speeds up the process of getting to Java 8 then it might be worth it.

I think it will speed up the process (even considering what I said above). I guess we’ll just sit on it for another 6-12 months, and by then many more people abandon Java 6. So dropping it won’t be as painful for the users as it is now.

Andrus





Re: Java 8

Posted by John Huss <jo...@gmail.com>.
On Fri, Mar 21, 2014 at 9:51 AM, Andrus Adamchik <an...@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 <jo...@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
>
>

Re: Java 8

Posted by Andrus Adamchik <an...@objectstyle.org>.
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.

Andrus



On Mar 21, 2014, at 5:38 PM, John Huss <jo...@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