Re: GWT Plugin For Eclipse; Ubuntu 64-Bit; XULRunner Issue

2015-12-29 Thread KGD
All,

I continued to search and it appears that the GWT Designer 
functionality doesn't work with GWT 2.6.0 but does work with GWT 2.6.1 but 
then fails with GWT 2.7.0.  

   Is the GWT 2.7.0 release note: "GWT Designer doesn’t work with 2.7 
and is no longer supported." accurate?  If so, is there any alternative to 
allow the continued use of GWT but with some other GUI for layout 
management?

Thanks,
KGD

On Tuesday, December 29, 2015 at 11:46:51 PM UTC-5, KGD wrote:
>
> Hello,
>
>I have been developing an app with GWT and have recently moved my 
> development platform to a 64-bit Dell Poweredge running Ubuntu 15.10.  I 
> installed Eclipse Mars. 1 Release (4.51) and downloaded and installed the 
> GWT Plugin and SDK.  When I attempt to open the GWT Designer, I initially 
> received a message stating that I did not have a compatible version of 
> XULRunner installed.  I finally found what was listed as a compatible 
> version at 
> *http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2*
>  
> .
>  
> and installed it.  Now, I no longer get the error message but GWT Designer 
> still does not open.  Rather, it freezes with a dialog box that states 
> 'initializing.'  From the log, it appears that it starts the local http 
> server.  At this point, I am dead in the water.  I don't see anything else 
> in the logs that indicate what the problem is.
>
>   I would greatly appreciate any feedback or direction on resolving this 
> issue.  My code compiles correctly but GWT Designer simply will not load.  
>
> Thanks,
>
> KGD
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


GWT Plugin For Eclipse; Ubuntu 64-Bit; XULRunner Issue

2015-12-29 Thread KGD
Hello,

   I have been developing an app with GWT and have recently moved my 
development platform to a 64-bit Dell Poweredge running Ubuntu 15.10.  I 
installed Eclipse Mars. 1 Release (4.51) and downloaded and installed the 
GWT Plugin and SDK.  When I attempt to open the GWT Designer, I initially 
received a message stating that I did not have a compatible version of 
XULRunner installed.  I finally found what was listed as a compatible 
version at 
*http://ftp.mozilla.org/pub/mozilla.org/xulrunner/nightly/2012/03/2012-03-02-03-32-11-mozilla-1.9.2/xulrunner-1.9.2.28pre.en-US.linux-x86_64.tar.bz2*
 
.
 
and installed it.  Now, I no longer get the error message but GWT Designer 
still does not open.  Rather, it freezes with a dialog box that states 
'initializing.'  From the log, it appears that it starts the local http 
server.  At this point, I am dead in the water.  I don't see anything else 
in the logs that indicate what the problem is.

  I would greatly appreciate any feedback or direction on resolving this 
issue.  My code compiles correctly but GWT Designer simply will not load.  

Thanks,

KGD

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Pablo Nussembaum
You can still use Guava functional idioms in particular FluentIterable [1] 
gives you a more java8 feeling

[1] 
http://google.github.io/guava/releases/snapshot/api/docs/com/google/common/collect/FluentIterable.html

On 29/12/15 15:43, Paul Mazzuca wrote:
> It appears that you are correct.  I misread the posts the first time I 
> searched. Thanks for the quick clarification.
>
> On Tue, Dec 29, 2015 at 10:38 AM, Juan Pablo Gardella 
> mailto:gardellajuanpa...@gmail.com>> wrote:
>
> I think it's not supported in GWT 2.8:
> - https://groups.google.com/forum/#!topic/google-web-toolkit/SuLcOTeJkyo 
> 
> - http://stackoverflow.com/questions/15693169/java-8-support-in-gwt
>
> On 29 December 2015 at 12:30, Paul Mazzuca  > wrote:
>
> That reference is for the "latest", which I am assuming is still for 
> 2.7, not 2.8?
>
> On Tue, Dec 29, 2015 at 10:26 AM, Juan Pablo Gardella 
> mailto:gardellajuanpa...@gmail.com>> wrote:
>
> stream() method is not mentioned in 
> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util. 
> Maybe this is the reason.
>
> On 29 December 2015 at 12:22, Paul Mazzuca 
> mailto:paul.j.mazz...@gmail.com>> wrote:
>
> Any reason why I would be receiving a compiler error in the 
> code below?
>
>
> //compiles
>
> this.mybutton.addClickHandler(c -> _dosomething()_);
>
>
>
> //does not compile
> Arrays.asList("one", "two").stream();
>
>
> I am using the beta Maven release of GWT 2.8 with jdk 
> 1.8.0_60  and am using super dev mode.  
>
>
> This is either a compiler bug or a Generator has legitimately 
> stopped creating these types.
> [INFO]  Compiling 1 permutation
> [INFO] Compiling permutation 0...
> [INFO] [ERROR] An internal compiler exception 
> occurred
> [INFO] com.google.gwt.dev.jjs.InternalCompilerException: 
> Unexpected error during visit.
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at 
> com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
> [INFO] at 
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
> [INFO] at 
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
>   

Re: JsInterop & 2.8.0-SNAPSHOT : calling Java Object in Javascript

2015-12-29 Thread Jens
I *think* it does not look too bad. You can compile your app using -mode 
PRETTY (or DETAILED if you also need package infos) so you can read the 
final JS output to see what went wrong. The only difference between 
SuperDevMode and a normal compile is that a normal compile optimizes your 
code. When you do a normal compile using -draftCompile then its pretty 
similar to SuperDevMode. When it works this way then you have probably 
found a bug caused by optimizations.

-- J.

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JSNI Question

2015-12-29 Thread Eric Nissan
I am using JSNI to reference a javascript library.  My initial call is 
fine, but then somewhere down they chain I get a null pointer inside the 
javascript library.

I am referencing the library like this

$wnd.TradingView.widget({});

which is a valid reference.  

This then seems to load in other javascript files.  the object it loads are 
not referenced as $wnd (because that is a GWT thing), and I eventually get 
a "cannot read property 'init' of undefined".

My question is, could this be causing my problems?  
for example I am getting this error on this call.  Is this because it is 
not prefaced with $wnd?
$.i18n.init({})

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


JsInterop & 2.8.0-SNAPSHOT : calling Java Object in Javascript

2015-12-29 Thread Anthony Hebig
hi,

I'm using JsInterop with GWT 2.8.0-SNAPSHOT and trying to use a "@JsType" 
annotated Java Object in a "js" file.

*It works fine in super dev mode* (gwt:run) but in "normal" mode (dev mode 
off) I have this exception (in the browser console) : "*onClick is not a 
function*"

Here is the Java Object, a home-made click handler : 

@JsType
public interface ITableClickHandler {  
  public void onClick(String rowId);  
  public void onDoubleClick(String rowId);
}


It's also declared as a property in my js file : (among other properties)

click_handler: {
type: Object
},

 
And I set this property with the method below (the name matches the name of 
the js property), in a Java interface that wraps some web component element 
(but that's not relevant I think) :

@JsType(isNative = true)
public interface MyTableElement {   

 

  @JsProperty
  void setClick_handler(ITableClickHandler clickHandler); 


At some point in my js file, I do the following :

if (this.click_handler) {
this.click_handler.onClick(row.id);
}

It allows me to catch this click event (okay just the row id) fired in the 
js file, with some GWT handler (implementing my interface 
ITableClickHandler).

And yes I use the new *jsinterop.** annotations ;)

I don't really know if I'm "jsInteroping" properly... and maybe there is a 
difference between the "super dev mode" compile and my "normal mode" 
compile (yes I have the *generateJsInteropExports *option set)

Thanks for you help !

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.


Re: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Paul Mazzuca
It appears that you are correct.  I misread the posts the first time I
searched. Thanks for the quick clarification.

On Tue, Dec 29, 2015 at 10:38 AM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> I think it's not supported in GWT 2.8:
> - https://groups.google.com/forum/#!topic/google-web-toolkit/SuLcOTeJkyo
> - http://stackoverflow.com/questions/15693169/java-8-support-in-gwt
>
> On 29 December 2015 at 12:30, Paul Mazzuca 
> wrote:
>
>> That reference is for the "latest", which I am assuming is still for 2.7,
>> not 2.8?
>>
>> On Tue, Dec 29, 2015 at 10:26 AM, Juan Pablo Gardella <
>> gardellajuanpa...@gmail.com> wrote:
>>
>>> stream() method is not mentioned in
>>> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util.
>>> Maybe this is the reason.
>>>
>>> On 29 December 2015 at 12:22, Paul Mazzuca 
>>> wrote:
>>>
 Any reason why I would be receiving a compiler error in the code below?


 //compiles

 this.mybutton.addClickHandler(c -> *dosomething()*);


 //does not compile
 Arrays.asList("one", "two").stream();


 I am using the beta Maven release of GWT 2.8 with jdk 1.8.0_60  and am
 using super dev mode.


 This is either a compiler bug or a Generator has legitimately stopped
 creating these types.
 [INFO]  Compiling 1 permutation
 [INFO] Compiling permutation 0...
 [INFO] [ERROR] An internal compiler exception occurred
 [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected
 error during visit.
 [INFO] at
 com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
 [INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
 [INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
 [INFO] at
 com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
 [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
 [INFO] at
 com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
 [INFO] at
 com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
 [INFO] at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
 [INFO] at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)
 [INFO] at
 com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
 [INFO] at
 com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
 [INFO] at
 com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
 [INFO] at
 com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
 [INFO] at java.lang.Thread.run(Thread.java:745)
 [INFO] Caused by: java.lang.NullPointerException
 [INFO] at
 com.google.gwt.dev.jjs.ast.JMethod.getJsniSignature(JMethod.java:560)
 [INFO] at
 com.google.gwt.dev.jjs.impl.ControlFlowRecorder.computeName(ControlFlowRecorder.java:50)
 [INFO] at
 com.google.gwt.dev.jjs.impl.ControlFlowRecorder.processMe

Re: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Juan Pablo Gardella
I think it's not supported in GWT 2.8:
- https://groups.google.com/forum/#!topic/google-web-toolkit/SuLcOTeJkyo
- http://stackoverflow.com/questions/15693169/java-8-support-in-gwt

On 29 December 2015 at 12:30, Paul Mazzuca  wrote:

> That reference is for the "latest", which I am assuming is still for 2.7,
> not 2.8?
>
> On Tue, Dec 29, 2015 at 10:26 AM, Juan Pablo Gardella <
> gardellajuanpa...@gmail.com> wrote:
>
>> stream() method is not mentioned in
>> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util.
>> Maybe this is the reason.
>>
>> On 29 December 2015 at 12:22, Paul Mazzuca 
>> wrote:
>>
>>> Any reason why I would be receiving a compiler error in the code below?
>>>
>>>
>>> //compiles
>>>
>>> this.mybutton.addClickHandler(c -> *dosomething()*);
>>>
>>>
>>> //does not compile
>>> Arrays.asList("one", "two").stream();
>>>
>>>
>>> I am using the beta Maven release of GWT 2.8 with jdk 1.8.0_60  and am
>>> using super dev mode.
>>>
>>>
>>> This is either a compiler bug or a Generator has legitimately stopped
>>> creating these types.
>>> [INFO]  Compiling 1 permutation
>>> [INFO] Compiling permutation 0...
>>> [INFO] [ERROR] An internal compiler exception occurred
>>> [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected
>>> error during visit.
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
>>> [INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
>>> [INFO] at
>>> com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
>>> [INFO] at
>>> com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
>>> [INFO] at java.lang.Thread.run(Thread.java:745)
>>> [INFO] Caused by: java.lang.NullPointerException
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JMethod.getJsniSignature(JMethod.java:560)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.computeName(ControlFlowRecorder.java:50)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.processMethodCall(ControlFlowRecorder.java:195)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.visit(ControlFlowRecorder.java:158)
>>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.visit(JVisitor.java:683)
>>> [INFO] at
>>> com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:73)
>>> [INFO] at co

Re: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Paul Mazzuca
That reference is for the "latest", which I am assuming is still for 2.7,
not 2.8?

On Tue, Dec 29, 2015 at 10:26 AM, Juan Pablo Gardella <
gardellajuanpa...@gmail.com> wrote:

> stream() method is not mentioned in
> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util.
> Maybe this is the reason.
>
> On 29 December 2015 at 12:22, Paul Mazzuca 
> wrote:
>
>> Any reason why I would be receiving a compiler error in the code below?
>>
>>
>> //compiles
>>
>> this.mybutton.addClickHandler(c -> *dosomething()*);
>>
>>
>> //does not compile
>> Arrays.asList("one", "two").stream();
>>
>>
>> I am using the beta Maven release of GWT 2.8 with jdk 1.8.0_60  and am
>> using super dev mode.
>>
>>
>> This is either a compiler bug or a Generator has legitimately stopped
>> creating these types.
>> [INFO]  Compiling 1 permutation
>> [INFO] Compiling permutation 0...
>> [INFO] [ERROR] An internal compiler exception occurred
>> [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
>> during visit.
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
>> [INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
>> [INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
>> [INFO] at
>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
>> [INFO] at
>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
>> [INFO] at
>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
>> [INFO] at
>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)
>> [INFO] at
>> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
>> [INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
>> [INFO] at
>> com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
>> [INFO] at
>> com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
>> [INFO] at java.lang.Thread.run(Thread.java:745)
>> [INFO] Caused by: java.lang.NullPointerException
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JMethod.getJsniSignature(JMethod.java:560)
>> [INFO] at
>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.computeName(ControlFlowRecorder.java:50)
>> [INFO] at
>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.processMethodCall(ControlFlowRecorder.java:195)
>> [INFO] at
>> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.visit(ControlFlowRecorder.java:158)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.visit(JVisitor.java:683)
>> [INFO] at
>> com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:73)
>> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
>> [INFO] ... 32 more
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "GWT Users" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to google-web-toolkit+unsubscr...@googlegroups.com.
>> To po

Re: GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Juan Pablo Gardella
stream() method is not mentioned in
http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_util.
Maybe this is the reason.

On 29 December 2015 at 12:22, Paul Mazzuca  wrote:

> Any reason why I would be receiving a compiler error in the code below?
>
>
> //compiles
>
> this.mybutton.addClickHandler(c -> *dosomething()*);
>
>
> //does not compile
> Arrays.asList("one", "two").stream();
>
>
> I am using the beta Maven release of GWT 2.8 with jdk 1.8.0_60  and am
> using super dev mode.
>
>
> This is either a compiler bug or a Generator has legitimately stopped
> creating these types.
> [INFO]  Compiling 1 permutation
> [INFO] Compiling permutation 0...
> [INFO] [ERROR] An internal compiler exception occurred
> [INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error
> during visit.
> [INFO] at
> com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
> [INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
> [INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
> [INFO] at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
> [INFO] at
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
> [INFO] at
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
> [INFO] at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
> [INFO] at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)
> [INFO] at
> com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
> [INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
> [INFO] at
> com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
> [INFO] at
> com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
> [INFO] at java.lang.Thread.run(Thread.java:745)
> [INFO] Caused by: java.lang.NullPointerException
> [INFO] at
> com.google.gwt.dev.jjs.ast.JMethod.getJsniSignature(JMethod.java:560)
> [INFO] at
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.computeName(ControlFlowRecorder.java:50)
> [INFO] at
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.processMethodCall(ControlFlowRecorder.java:195)
> [INFO] at
> com.google.gwt.dev.jjs.impl.ControlFlowRecorder.visit(ControlFlowRecorder.java:158)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.visit(JVisitor.java:683)
> [INFO] at
> com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:73)
> [INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
> [INFO] ... 32 more
>
> --
> You received this message because you are subscribed to the Google Groups
> "GWT Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to google-web-toolkit+unsubscr...@googlegroups.com.
> To post to this group, send email to google-web-toolkit@googlegroups.com.
> Visit this group at https://groups.google.com/group/google-web-toolkit.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups

GWT 2.8 Compiler Question for Streams

2015-12-29 Thread Paul Mazzuca


Any reason why I would be receiving a compiler error in the code below?


//compiles

this.mybutton.addClickHandler(c -> *dosomething()*);


//does not compile
Arrays.asList("one", "two").stream();


I am using the beta Maven release of GWT 2.8 with jdk 1.8.0_60  and am 
using super dev mode.  


This is either a compiler bug or a Generator has legitimately stopped 
creating these types.
[INFO]  Compiling 1 permutation
[INFO] Compiling permutation 0...
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error 
during visit.
[INFO] at 
com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:111)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:130)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:118)
[INFO] at 
com.google.gwt.dev.jjs.ast.JReturnStatement.traverse(JReturnStatement.java:40)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
[INFO] at 
com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemove(JVisitor.java:168)
[INFO] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:92)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:139)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:135)
[INFO] at 
com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:83)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:730)
[INFO] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:722)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:146)
[INFO] at 
com.google.gwt.dev.jjs.ast.JVisitor.acceptWithInsertRemoveImmutable(JVisitor.java:172)
[INFO] at 
com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:142)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at 
com.google.gwt.dev.jjs.ast.JProgram.visitModuleTypes(JProgram.java:1288)
[INFO] at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:1253)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:122)
[INFO] at 
com.google.gwt.dev.jjs.impl.ControlFlowRecorder.execImpl(ControlFlowRecorder.java:163)
[INFO] at 
com.google.gwt.dev.jjs.impl.ControlFlowRecorder.exec(ControlFlowRecorder.java:46)
[INFO] at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.maybeRecordReferencesAndControlFlow(JavaToJavaScriptCompiler.java:474)
[INFO] at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:352)
[INFO] at 
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compilePermutation(JavaToJavaScriptCompiler.java:272)
[INFO] at com.google.gwt.dev.CompilePerms.compile(CompilePerms.java:198)
[INFO] at 
com.google.gwt.dev.ThreadedPermutationWorkerFactory$ThreadedPermutationWorker.compile(ThreadedPermutationWorkerFactory.java:50)
[INFO] at 
com.google.gwt.dev.PermutationWorkerFactory$Manager$WorkerThread.run(PermutationWorkerFactory.java:74)
[INFO] at java.lang.Thread.run(Thread.java:745)
[INFO] Caused by: java.lang.NullPointerException
[INFO] at 
com.google.gwt.dev.jjs.ast.JMethod.getJsniSignature(JMethod.java:560)
[INFO] at 
com.google.gwt.dev.jjs.impl.ControlFlowRecorder.computeName(ControlFlowRecorder.java:50)
[INFO] at 
com.google.gwt.dev.jjs.impl.ControlFlowRecorder.processMethodCall(ControlFlowRecorder.java:195)
[INFO] at 
com.google.gwt.dev.jjs.impl.ControlFlowRecorder.visit(ControlFlowRecorder.java:158)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.visit(JVisitor.java:683)
[INFO] at 
com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:73)
[INFO] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
[INFO] ... 32 more

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-web-toolkit+unsubscr...@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.