Re: [gwt-contrib] Re: Possible bug with method references when doing this::foo

2015-02-13 Thread Ali Akhtar
I am on the temporary maven snapshot repo that's being hosted on github.
But it builds every 24 hrs so I'm guessing that it may not yet have the
patch for this bug. If its occurring tomorrow, I'll create a test case.

Thanks.
On Feb 13, 2015 10:59 PM, "Ye Wang"  wrote:

> We wrote a small test case with this::foo, but did not see any problems.
>
> Could you provide more details so that we can reproduce the bug?
>
> Did you run with the latest trunk? We just fixed a bug in GwtAstBuilder
> and we guess that it might be a possible cause to the bug in method
> reference.
>
> On Friday, February 13, 2015 at 6:47:29 AM UTC-8, Ali Akhtar wrote:
>>
>> In a project, when I do the following:
>>
>> SomeClass.someMethod( this::handleResult);
>>
>>
>> I get :  com.google.gwt.event.shared.UmbrellaException: Exception
>> caught: (ReferenceError) : xFf_g$ is not defined
>>
>> But when I replace the above line with:
>>
>> SomeClass.someMethod( r-> handleResult(r) );
>>
>>
>> That works fine.
>>
>> It appears that the use of 'this' is causing some issues due to
>> javascript's crappiness. Other method references work fine, I only
>> encounter this when I use this::methodName
>>
>>  --
> 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-contributors/WFwx1VIAjSc/unsubscribe
> .
> To unsubscribe from this group and all its topics, 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/09b286be-96d8-4208-b9ff-fb2f7d82a8c3%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/CAKiMtbecuF8rPnk5LKVpFuyK7hRZQP2-vnTE3MmM9kJN%2BETYaA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Possible bug with method references when doing this::foo

2015-02-13 Thread Ye Wang
We wrote a small test case with this::foo, but did not see any problems.

Could you provide more details so that we can reproduce the bug?

Did you run with the latest trunk? We just fixed a bug in GwtAstBuilder and 
we guess that it might be a possible cause to the bug in method reference.

On Friday, February 13, 2015 at 6:47:29 AM UTC-8, Ali Akhtar wrote:
>
> In a project, when I do the following:
>
> SomeClass.someMethod( this::handleResult);
>
>
> I get :  com.google.gwt.event.shared.UmbrellaException: Exception caught: 
> (ReferenceError) : xFf_g$ is not defined
>
> But when I replace the above line with:
>
> SomeClass.someMethod( r-> handleResult(r) );
>
>
> That works fine. 
>
> It appears that the use of 'this' is causing some issues due to 
> javascript's crappiness. Other method references work fine, I only 
> encounter this when I use this::methodName
>
>

-- 
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/09b286be-96d8-4208-b9ff-fb2f7d82a8c3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: SDM does not recompile when only GSS file has changed

2015-02-13 Thread confile
I think the problem is the following. When you specify the gss file in 
youre Resources as SomeStyle.gss and your file on the file system is 
named SomeStyle2.gss then you get an error, but when the file is 
someStyle.gss you do not get an error. 

This means that the Compiler should als check for case sensitivity of the 
resource file names.



Am Freitag, 13. Februar 2015 16:31:09 UTC+1 schrieb confile:
>
> I am working with GWT 2.7 and GSS Resources. 
> When I change content in my .gss files an make a refresh in my browser, 
> then SDM does not detect the changes. So the changes in .gss files only are 
> not recompiled. I have to change something in my .java files in order to 
> get the actual version of my code.
>

-- 
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/c9eeea35-3a1c-409c-a005-5d9165d21038%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] SDM does not recompile when only GSS file has changed

2015-02-13 Thread confile
I am working with GWT 2.7 and GSS Resources. 
When I change content in my .gss files an make a refresh in my browser, 
then SDM does not detect the changes. So the changes in .gss files only are 
not recompiled. I have to change something in my .java files in order to 
get the actual version of my code.

-- 
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/56a8e8b1-2e5a-45a6-8624-dbbd2d8bfe04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: GWT Generators vs java annotation processing

2015-02-13 Thread Thomas Broyer


On Friday, February 13, 2015 at 12:15:42 PM UTC+1, Frank Hossfeld wrote:
>
> @Thomas:
> That sounds like GWT will use annotation processing instead of generators 
> in the future. Is it a good idea to start writing annotation processors as 
> an alternative for generators in new projects?
>

If you ask for my (very personal) opinion, I'd say that if you can use an 
annotation processor, then go ahead and do it.
I believe there are still good use-cases for GWT generators (for example, 
annotation processors are not designed to have dependencies on non-Java 
sources –such as ui.xml, gss or properties files–, and GWT generators are 
run once per permutation and can generate code specific to that 
permutation; choosing the right code-path for a given permutation when 
generating code through an annotation processor wouldn't be as easy). On 
the other hand GWT generators require you to fully manage your inputs and 
outputs if you want to take full advantage of incremental builds and not 
slow down SDM.
 

>
> Am Donnerstag, 22. Januar 2015 00:20:03 UTC+1 schrieb Thomas Broyer:
>>
>> GWT itself won't run annotation processors (yet), but if your IDE runs 
>> them automatically on file save then it should work just as well as GWT 
>> generators.
>
>

-- 
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/ac49892c-fdd0-47b8-a6dd-a7c9206dc007%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Possible bug with method references when doing this::foo

2015-02-13 Thread Ali Akhtar
In a project, when I do the following:

SomeClass.someMethod( this::handleResult);


I get :  com.google.gwt.event.shared.UmbrellaException: Exception caught: 
(ReferenceError) : xFf_g$ is not defined

But when I replace the above line with:

SomeClass.someMethod( r-> handleResult(r) );


That works fine. 

It appears that the use of 'this' is causing some issues due to 
javascript's crappiness. Other method references work fine, I only 
encounter this when I use this::methodName

-- 
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/9d93f50d-3d49-4826-88b7-7f86fc1de3c0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: GWT Generators vs java annotation processing

2015-02-13 Thread Frank Hossfeld
@Thomas:
That sounds like GWT will use annotation processing instead of generators 
in the future. Is it a good idea to start writing annotation processors as 
an alternative for generators in new projects?

Am Donnerstag, 22. Januar 2015 00:20:03 UTC+1 schrieb Thomas Broyer:
>
> GWT itself won't run annotation processors (yet), but if your IDE runs 
> them automatically on file save then it should work just as well as GWT 
> generators.

-- 
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/a9a568b7-405a-42b8-8584-579caca0ce29%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[gwt-contrib] Re: Build server is down

2015-02-13 Thread Lars
I guess the problem is fixed now - the jars are back and build server too! 
:-)

Thanks to all they fixed this!

-- 
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/67c01939-e361-43f6-8393-cfacc61f4c40%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.