[gwt-contrib] Java8 emulation

2015-03-25 Thread Jens
Hi, 

whats the current situation of adding Java8 emulations to GWT?

I would like to fix the current emulation of @FunctionalInterface (wrong 
package and missing imports), add java.util.Optional[Int|Long|Double] 
emulation and like to see java.util.function interfaces in trunk committed. 
That would allow us to further work on stream API emulation which would be 
nice to have in GWT 2.8, right? Just having Java8 syntax support seems a 
little weak to me for a new release.

Currently my patch for java.util.function can not be verified by Jenkins 
because it runs the presubmit task with sourceLevel 1.7 (and Java7 I 
think). So I assume that the next GWT release should be compatible to 
Java7. 

Does this mean that any emulation of Java8 APIs should be done using Java7 
syntax ( = no lambdas in emulation code) ? What about default methods in 
emulated code when people use JDK 7 with GWT? 

So how should Java8 emulations be contributed? 


-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5f24150d-df54-420a-b9af-910df926ccf0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread John A. Tamplin
On Wed, Mar 25, 2015 at 11:16 AM, Jens  wrote:

> whats the current situation of adding Java8 emulations to GWT?
>
> I would like to fix the current emulation of @FunctionalInterface (wrong
> package and missing imports), add java.util.Optional[Int|Long|Double]
> emulation and like to see java.util.function interfaces in trunk committed.
> That would allow us to further work on stream API emulation which would be
> nice to have in GWT 2.8, right? Just having Java8 syntax support seems a
> little weak to me for a new release.
>

Adding new classes should be pretty straightforward.


> Currently my patch for java.util.function can not be verified by Jenkins
> because it runs the presubmit task with sourceLevel 1.7 (and Java7 I
> think). So I assume that the next GWT release should be compatible to
> Java7.
>
> Does this mean that any emulation of Java8 APIs should be done using Java7
> syntax ( = no lambdas in emulation code) ? What about default methods in
> emulated code when people use JDK 7 with GWT?
>

That would be my vote - we don't want to force people to use Java8 just yet.

-- 
John A. Tamplin

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM5k6X-xtnTX_xXPPr4M9AsFP_qNQHZU_9k_VJP5o4ZjLYknWw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread Colin Alworth
The trick seems to be that it is not going to be possible to add Java8 emul
code without actually using Java8 - while lambdas can be avoided, defender
methods cannot. If you need to provide a new interface like Consumer, the
supersource *must* have the `default` method(s), or it won't actually be
Consumer.

If it were just those types, it would be possible to move them into their
own module so developers would need to inherit's the Java8 module to get
access to them, but the Collection interface itself needs to be changed to
add `default Stream stream()`, plus the implementation, or else all
implementors of Collection (and Set and List) need to have an
implementation added. Even then, Stream would need to be emulated, which
references Consumer, so we can't have it be a separate module...

...or am I over-complicating matters?

On Wed, Mar 25, 2015 at 10:20 AM John A. Tamplin  wrote:

> On Wed, Mar 25, 2015 at 11:16 AM, Jens  wrote:
>
>> whats the current situation of adding Java8 emulations to GWT?
>>
>> I would like to fix the current emulation of @FunctionalInterface (wrong
>> package and missing imports), add java.util.Optional[Int|Long|Double]
>> emulation and like to see java.util.function interfaces in trunk committed.
>> That would allow us to further work on stream API emulation which would be
>> nice to have in GWT 2.8, right? Just having Java8 syntax support seems a
>> little weak to me for a new release.
>>
>
> Adding new classes should be pretty straightforward.
>
>
>> Currently my patch for java.util.function can not be verified by Jenkins
>> because it runs the presubmit task with sourceLevel 1.7 (and Java7 I
>> think). So I assume that the next GWT release should be compatible to
>> Java7.
>>
>> Does this mean that any emulation of Java8 APIs should be done using
>> Java7 syntax ( = no lambdas in emulation code) ? What about default methods
>> in emulated code when people use JDK 7 with GWT?
>>
>
> That would be my vote - we don't want to force people to use Java8 just
> yet.
>
> --
> John A. Tamplin
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM5k6X-xtnTX_xXPPr4M9AsFP_qNQHZU_9k_VJP5o4ZjLYknWw%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CADcXZMxJV4ES0SiMeDsMSaw9zrPCZhYq2sTkJoZVgcpxF59%2BHA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread John A. Tamplin
On Wed, Mar 25, 2015 at 11:33 AM, Colin Alworth  wrote:

> The trick seems to be that it is not going to be possible to add Java8
> emul code without actually using Java8 - while lambdas can be avoided,
> defender methods cannot. If you need to provide a new interface like
> Consumer, the supersource *must* have the `default` method(s), or it won't
> actually be Consumer.
>
> If it were just those types, it would be possible to move them into their
> own module so developers would need to inherit's the Java8 module to get
> access to them, but the Collection interface itself needs to be changed to
> add `default Stream stream()`, plus the implementation, or else all
> implementors of Collection (and Set and List) need to have an
> implementation added. Even then, Stream would need to be emulated, which
> references Consumer, so we can't have it be a separate module...
>
> ...or am I over-complicating matters?
>

Well, certainly there are things which will require further support in GWT
and in the build, but things like adding j.u.Optional can be done without
that.

-- 
John A. Tamplin

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM5k6X_k%2BwvoH_a_YquYcxY-uzbL%3DdANNn5eGZZJUombafbKBA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Julien Dramaix
Couldn't we configure sonatype to keep at least the last snapshot even if
we don't update the repository (because the build failed)  ?


On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT Contributors <
google-web-toolkit-contributors@googlegroups.com> wrote:

> We are looking into it and will be hopefully resolved soon.
>
> On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth  wrote:
>
>> It looks like the build is failing, and has been for some days:
>> http://build.gwtproject.org/job/gwt/49/#showFailuresLink
>>
>> Test Result (26 failures / -6)
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder
>>
>> com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator
>>
>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts
>>
>>
>> On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:
>>>
>>> Hey guys,
>>>
>>> Is there a maven repo to use for getting snapshot builds? Sonatype
>>> doesn't contain .jars,
>>>
>>> https://oss.sonatype.org/content/repositories/google-
>>> snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/
>>>
>>> And https://github.com/manolo/gwt-snapshot/ doesn't appear to have been
>>> updated for 28 days.
>>>
>>> Thanks.
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Contributors" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
>> 
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gk%3DDo5V1vK0wcEZX0Gu2386NiGcax-XTTFDtMWgR5z93g%40mail.gmail.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributo

Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Yes please.
On Mar 25, 2015 9:30 PM, "Julien Dramaix"  wrote:

> Couldn't we configure sonatype to keep at least the last snapshot even if
> we don't update the repository (because the build failed)  ?
>
>
> On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT Contributors
>  wrote:
>
>> We are looking into it and will be hopefully resolved soon.
>>
>> On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth 
>> wrote:
>>
>>> It looks like the build is failing, and has been for some days:
>>> http://build.gwtproject.org/job/gwt/49/#showFailuresLink
>>>
>>> Test Result (26 failures / -6)
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder
>>>
>>> com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts
>>>
>>>
>>> On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:

 Hey guys,

 Is there a maven repo to use for getting snapshot builds? Sonatype
 doesn't contain .jars,

 https://oss.sonatype.org/content/repositories/google-
 snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

 And https://github.com/manolo/gwt-snapshot/ doesn't appear to have
 been updated for 28 days.

 Thanks.

>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Contributors" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com
>>> .
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Contributors" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gk%3DDo5V1vK0wcEZX0Gu2386NiGcax-XTTFDtMWgR5z93g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to a topic in the
> Google Groups "GWT Contributors" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/google-web-toolkit-contribut

Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread 'Roberto Lublinerman' via GWT Contributors
Build is green now. I am not sure about sonatype, let's wait for dankurka
to chime in...

On Wed, Mar 25, 2015 at 9:30 AM, Julien Dramaix 
wrote:

> Couldn't we configure sonatype to keep at least the last snapshot even if
> we don't update the repository (because the build failed)  ?
>
>
> On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT Contributors
>  wrote:
>
>> We are looking into it and will be hopefully resolved soon.
>>
>> On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth 
>> wrote:
>>
>>> It looks like the build is failing, and has been for some days:
>>> http://build.gwtproject.org/job/gwt/49/#showFailuresLink
>>>
>>> Test Result (26 failures / -6)
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder
>>>
>>> com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator
>>>
>>> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts
>>>
>>>
>>> On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:

 Hey guys,

 Is there a maven repo to use for getting snapshot builds? Sonatype
 doesn't contain .jars,

 https://oss.sonatype.org/content/repositories/google-
 snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/

 And https://github.com/manolo/gwt-snapshot/ doesn't appear to have
 been updated for 28 days.

 Thanks.

>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "GWT Contributors" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to google-web-toolkit-contributors+unsubscr...@googlegroups.com
>>> .
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
>>> 
>>> .
>>>
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Contributors" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gk%3DDo5V1vK0wcEZX0Gu2386NiGcax-XTTFDtMWgR5z93g%40mail.gmail.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this grou

Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread 'Roberto Lublinerman' via GWT Contributors
I think we make run presubmits with Java 8. AFAIK presubmit only build the
compiler (to see that is buildable) and run checkstyle. We will still run
our main continuous build in Java 7 and there is an alternate continuous
build with Java 8 (which is now broken).

Can someone look at those failures? Internally apart from the 2 failing tck
tests (which we could disable until we upgrade validation) all the others
are passing.

I am not sure why
On Wed, Mar 25, 2015 at 8:38 AM, John A. Tamplin  wrote:

> On Wed, Mar 25, 2015 at 11:33 AM, Colin Alworth 
> wrote:
>
>> The trick seems to be that it is not going to be possible to add Java8
>> emul code without actually using Java8 - while lambdas can be avoided,
>> defender methods cannot. If you need to provide a new interface like
>> Consumer, the supersource *must* have the `default` method(s), or it won't
>> actually be Consumer.
>>
>> If it were just those types, it would be possible to move them into their
>> own module so developers would need to inherit's the Java8 module to get
>> access to them, but the Collection interface itself needs to be changed to
>> add `default Stream stream()`, plus the implementation, or else all
>> implementors of Collection (and Set and List) need to have an
>> implementation added. Even then, Stream would need to be emulated, which
>> references Consumer, so we can't have it be a separate module...
>>
>> ...or am I over-complicating matters?
>>
>
> Well, certainly there are things which will require further support in GWT
> and in the build, but things like adding j.u.Optional can be done without
> that.
>
> --
> John A. Tamplin
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAM5k6X_k%2BwvoH_a_YquYcxY-uzbL%3DdANNn5eGZZJUombafbKBA%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAC7T7gkfKK09OCGwME0t_VBmXNcSJFKSTF1%3DPAA3gWsgzAo7Og%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread Jens


> I think we make run presubmits with Java 8.
>

Ok but then it is still with sourceLevel 1.7 by default. Here [1] is a 
presubmit log from february that complains about lambda, default methods 
and static interface methods.

But that is just job setup in Jenkins. Its more interesting how to 
contribute emulation code that requires Java 8. Should GWT provide 
user/super/com/google/gwt/emul and user/super/com/google/gwt/emul8 and then 
let ANT produce two gwt-user libs? I am pretty sure you have already talked 
about that offline and have some ideas...

[1] http://build.gwtproject.org/job/gwt.presubmit/40/console

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5dbe5f39-9683-4529-84ca-fe715564755f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
It appears that the web bindery jars are still missing on sonatype?

[ERROR] Non-resolvable import POM: Could not find artifact com.google.
web.bindery:requestfactory:pom:2.8.0-SNAPSHOT in sonatype-nexus-snapshots (
https://oss.sonatype.org/content/repositories/snapshots) @ 
com.google.gwt:gwt:2.8.0-SNAPSHOT, 
/home/ali/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
 
line 50, column 25 -> [Help 2]



There don't seem to be any jars 
at 
https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/

On Wednesday, March 25, 2015 at 10:29:04 PM UTC+5, Roberto Lublinerman 
wrote:
>
> Build is green now. I am not sure about sonatype, let's wait for dankurka 
> to chime in...
>
> On Wed, Mar 25, 2015 at 9:30 AM, Julien Dramaix  > wrote:
>
>> Couldn't we configure sonatype to keep at least the last snapshot even 
>> if we don't update the repository (because the build failed)  ?
>>
>>
>> On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT 
>> Contributors > > wrote:
>>
>>> We are looking into it and will be hopefully resolved soon.
>>>
>>> On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth >> > wrote:
>>>
 It looks like the build is failing, and has been for some days: 
 http://build.gwtproject.org/job/gwt/49/#showFailuresLink

 Test Result (26 failures / -6)

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder

 com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator

 com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts


 On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:
>
> Hey guys,
>
> Is there a maven repo to use for getting snapshot builds? Sonatype 
> doesn't contain .jars,
>
> https://oss.sonatype.org/content/repositories/google-
> snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/
>
> And https://github.com/manolo/gwt-snapshot/ doesn't appear to have 
> been updated for 28 days.
>
> Thanks.
>
  -- 
 You received this message because you are subscribed to the Google 
 Groups "GWT Contributors" group.
 To unsubscribe from this group and stop receiving emails from it, send 
 an email to 
 google-web-toolkit-contributors+unsubscr...@googlegroups.com 
 .
 To view this discussion on the web visit 
 https://groups.google.com/d/msgid/google-web-toolkit-contributors/ad62891f-a1f0-4c59-ac18-7c6b877f2088%40googlegroups.com
  
 
 .

 For more options, visit https://groups.google.com/d/optout.

>>>
>>>  -- 
>>> You received this me

Re: [gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Or it might be that the pom file is missing? It fails at "Downloading: 
https://oss.sonatype.org/content/repositories/snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/requestfactory-2.8.0-SNAPSHOT.pom";

If I use https://github.com/manolo/gwt-snapshot/ as a repo, it compiles 
without complaining

On Thursday, March 26, 2015 at 1:10:57 AM UTC+5, Ali Akhtar wrote:
>
> It appears that the web bindery jars are still missing on sonatype?
>
> [ERROR] Non-resolvable import POM: Could not find artifact com.google.
> web.bindery:requestfactory:pom:2.8.0-SNAPSHOT in sonatype-nexus-snapshots 
> (https://oss.sonatype.org/content/repositories/snapshots) @ 
> com.google.gwt:gwt:2.8.0-SNAPSHOT, 
> /home/ali/.m2/repository/com/google/gwt/gwt/2.8.0-SNAPSHOT/gwt-2.8.0-SNAPSHOT.pom,
>  
> line 50, column 25 -> [Help 2]
>
>
>
> There don't seem to be any jars at 
> https://oss.sonatype.org/content/repositories/google-snapshots/com/google/web/bindery/requestfactory/2.8.0-SNAPSHOT/
>
> On Wednesday, March 25, 2015 at 10:29:04 PM UTC+5, Roberto Lublinerman 
> wrote:
>>
>> Build is green now. I am not sure about sonatype, let's wait for dankurka 
>> to chime in...
>>
>> On Wed, Mar 25, 2015 at 9:30 AM, Julien Dramaix  
>> wrote:
>>
>>> Couldn't we configure sonatype to keep at least the last snapshot even 
>>> if we don't update the repository (because the build failed)  ?
>>>
>>>
>>> On Thu, Mar 19, 2015 at 5:45 PM 'Roberto Lublinerman' via GWT 
>>> Contributors  wrote:
>>>
 We are looking into it and will be hopefully resolved soon.

 On Thu, Mar 19, 2015 at 8:15 AM, Colin Alworth  
 wrote:

> It looks like the build is failing, and has been for some days: 
> http://build.gwtproject.org/job/gwt/49/#showFailuresLink
>
> Test Result (26 failures / -6)
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_bridgeMethodOverrideChain
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsCascadedGenerators
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dateStampChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatePreamble
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superClassOrder
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_superFromStaleInner
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_deterministicUiBinder
>
> com.google.gwt.dev.CompilerTest.testDeterministicBuild_Draft_StackModeStrip
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_uiBinderCssChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unstableGeneratorReferencesModifiedType
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_functionSignatureChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_compileTimeConstantChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_transitivelyFoldableConstant
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_packagePrivateDispatch
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_regularClassMadeIntoJsoClass
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_unreachableIncompatibleChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_typeHierarchyChange
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_defaultMethod
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeUnchangedJso
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_devirtualizeString
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_multipleClassGenerator
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_singleJsoIntfDispatchChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_dualJsoIntfDispatchChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_generatorInputResourceChange
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_invalidatedGeneratorOutputRerunsGenerator
>
> com.google.gwt.dev.CompilerTest.testIncrementalRecompile_carriesOverGeneratorArtifacts
>
>
> On Thursday, March 19, 2015 at 8:04:34 AM UTC-5, Ali Akhtar wrote:
>>
>> Hey guys,
>>
>> Is there a maven repo to use for getting snapshot builds? Sonatype 
>> doesn't contain .jars,
>>
>> https://oss.sonatype.org/content/repositories/google-
>> snapshots/com/google/gwt/gwt-user/2.8.0-SNAPSHOT/
>>
>> And https://github.com/manolo/gwt-snapshot/ doesn't appear to have 
>> been updated for 28 days.
>>
>> Thanks.
>>
>  -- 
> You received this message because you are subscribed to the Google 
> Groups "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send 
> an email to 
> google-web-toolkit

[gwt-contrib] Re: Snapshot repo?

2015-03-25 Thread Ali Akhtar
Ah, https://oss.sonatype.org/content/repositories/google-snapshots/ is the 
repo. Got it, working now.

+1 in favor of not deleting the last working build, please.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/5fad2086-ef51-4200-b154-2a3df2d95dfd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [gwt-contrib] Java8 emulation

2015-03-25 Thread 'Goktug Gokdogan' via GWT Contributors
For Java8 emulation, what is my mind is to have Jens patch and have
collection API improvements (Streams) to be available. There are few issues
and steering committee is discussing (or will discuss) about it.

See the discussion in
https://groups.google.com/d/topic/gwt-maintainers/X6WnH3C-nzg/discussion

For some reason that discussion doesn't seem visible to everyone but in
short we are planning to make Java8 only release with an option for
community to make it work with java7.

Here is related part rephrased:

--

For supporting java7, the deprecated but not dropped dev-mode is the source
of the problem (java8 emulation doesn't compile with java7, so we compile
with java8 mode which produces byte code incompatible with java7 VMs).

There are three ways to make it work:
1- The community can extract the java emul from 2.7 release and bundle it
with 2.8 (we didn't remove the source-level flag yet to keep this as an
option for the community).
2. Somebody can contribute a byte code rewriter that re-writes java8
byte-code as java7 by re-purposing retrolambda.  It doesn't need to be
perfect as the user-code will only use java7 features (I thinking this is
the cleanest one).
3. I don't remember if I have tried hard enough to force java7 compile with
devmode; but if somebody is interested, he/she can a look at this one as
well (i.e. set sourceLevel to 7 in dev-mode and try to make that work).

All of these all assumes that user code is kept java7 compatible and trying
make GWT 2.8 work in java7 VM environment. If the developers just upgrade
VM in developer workstations to a Java8 VM (upgrading to Java8 SDK is NOT
required), none of these is needed so I think the community doesn't need to
bother with it. However if there is enough demand and interest from the
community, they could take one of the options to make the 2.8 a java7
compatible release.


On Wed, Mar 25, 2015 at 12:55 PM, Jens  wrote:

>
> I think we make run presubmits with Java 8.
>>
>
> Ok but then it is still with sourceLevel 1.7 by default. Here [1] is a
> presubmit log from february that complains about lambda, default methods
> and static interface methods.
>
> But that is just job setup in Jenkins. Its more interesting how to
> contribute emulation code that requires Java 8. Should GWT provide
> user/super/com/google/gwt/emul and user/super/com/google/gwt/emul8 and
> then let ANT produce two gwt-user libs? I am pretty sure you have already
> talked about that offline and have some ideas...
>
> [1] http://build.gwtproject.org/job/gwt.presubmit/40/console
>
> -- J.
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Contributors" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/google-web-toolkit-contributors/5dbe5f39-9683-4529-84ca-fe715564755f%40googlegroups.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit-contributors+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit-contributors/CAN%3DyUA1jE1JfBW%2Be_MPiNdrWcHzeJ3Cq2WmGePqn4ptYtNmjgQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.