Extending ArrayList - GWT compiler crashes out

2017-03-30 Thread Debasish Padhy
Hi, I have a requirement where I am creating a set of custom collection classes by deriving from existing ones, such as public class CustomArrayList extends ArrayList{ public CustomArrayList(){ } } Then I use a replace with rule to replace ArrayList with this custom collection

Re: Newbie questions converting Java app to GWT

2017-03-30 Thread Mr Grol
Thank you so much guys. It's working now! Instead of BufferedReader, I used a String array created by .split() on a backslash n. I'm so happy I don't have to manually define the array size in Java beforehand! To append text to a TextArea, I read the contents of it and concatenated that with

Re: How to deal with transitive maven dependencies?

2017-03-30 Thread Magnus
Hello Thomas, thank you very much, but I only understand parts of your posts, because maven is still new to me... Actually, nothing. Nothing on the Maven side though. > Yes, I can validate this by doing mvn gwt:devmode and the app works, nevertheless what eclipse thinks is wrong... > The

Re: How to deal with transitive maven dependencies?

2017-03-30 Thread Thomas Broyer
On Thursday, March 30, 2017 at 4:57:04 PM UTC+2, Magnus wrote: > > Remove provided at >> >> >> msm.lib.acs >> msm-lib-acs >> >> … >> >> 1.0-SNAPSHOT >> provided >> >> >> > If I only remove provided (without replacing it with > another scope), then the jar file is

Re: How to deal with transitive maven dependencies?

2017-03-30 Thread Magnus
Note that as soon as I set the scope back to provided the error is gone immediately. Maybe another scope is needed here? -- 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

Re: How to deal with transitive maven dependencies?

2017-03-30 Thread Magnus
> > Remove provided at > > > msm.lib.acs > msm-lib-acs > > … > > 1.0-SNAPSHOT > provided > > > If I only remove provided (without replacing it with another scope), then the jar file is correctly copied into the WEB-INF/lib folder. But then, I have an error marker

Re: Newbie questions converting Java app to GWT

2017-03-30 Thread David
I tend to use Guava Splitter class when splitting text. Guava is compatible with GWT (there is a guava-gwt.jar artifact). On Thu, 30 Mar 2017 at 08:59, Frank wrote: > 1a. Only java.lang and java.util classes are supported > 1b. Just use a StringBuffer and setText > > 2.

Newbie questions converting Java app to GWT

2017-03-30 Thread Mr Grol
Hello, I have a Java app that I wish to convert to JavaScript using GWT. I have downloaded GWT and the plugin for Eclipse. However, I am having some problems: *1. textArea / BufferedReader* *1a*. Parsing each line of a textArea line by line. In Java I use java.io.BufferedReader. This