Re: GWT-client math vs. java-math

2019-05-19 Thread Craig Mitchell
The biggest difference I saw when running shared code between Java and JavaScript, was that JavaScript doesn't support floats (they will be treated as doubles in JavaScript). -- You received this message because you are subscribed to the Google Groups "GWT Users" group. To unsubscribe from

Re: [GWT] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'

2019-05-19 Thread Craig Mitchell
I don't believe GWT supports Java 12 yet. I'd recommend just using Java 8. And you might want to use the latest GWT version (2.8.2). -- 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

An EventBus with less boiler plate

2019-05-19 Thread George Georgovassilis
Apologies if this has been discussed before. The EventBus requires the declaration of an Event class and a Handler interface for each activity of interest, which often results in plenty of boiler plate. In one of our projects we came up with a simpler notation which doesn't require event

[GWT] [ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core'

2019-05-19 Thread Clint Yang
Hi all, I haven't done GWT development for a while and wanted to try again. I installed JDK 12 and Eclipse 2019-03. I installed GWT Eclipse Plugin (GWT 2.8.1). >From Eclipse, I created a hello world project this way: 1. Click on 'New GWT Application Project' 2. Project name: Gwt5,

Re: GWT-client math vs. java-math

2019-05-19 Thread Craig Mitchell
My testing has revealed that Math.sqrt does not yield the same results. I think GWT just converts Math.sqrt to the JavaScript Math.sqrt function. I noticed the JavaScript Math.sqrt function returns different results based on what browser, and what operating system you are using. I couldn't