Thank you all for your answers. It still seems that Jakarta RegExp does not have a "hitEnd" equivalent (and I think I'm not prepared to try and implement it myself). I'm pondering to do with OpenJDK the same I have already done with SUN's Matcher class. If anyone knows an alternative...
On Aug 10, 10:44 am, Paul Robinson <ukcue...@gmail.com> wrote: > I am not a lawyer, and I didn't look too closely, but from reading the > Sun Java 6 licence, it looks pretty clear to me that you can NOT use > their code in the way you want. > > You may be able to use the OpenJDK source instead. You'd have to dig in > to it to work out what the licence for just the regular expressions part > is, but most of the OpenJDK is GPL. > > You'd probably be better off taking the Jakarta Regexp code > instead:http://jakarta.apache.org/regexp/index.html > > This is released under an apache licence, and so you could create a GWT > regexp library based on that and release it under an apache licence that > anybody could use without any legal problems or onerous restrictions. > This implementation doesn't use the same API as JDK regular expressions, > but does appear to offer the same facilities. (I have not used it) > > HTH > Paul > > Dunlord wrote: > > For a Open Source project I'm working on I needed the > > java.util.regex.Matcher (and so the java.util.regex.Pattern) classes, > > in the client side. They are not in the GWT JRE emulation library, but > > the source code for both classes are published by SUN (I'm not sure if > > under the GPL). > > > So I copy-pasted the source code of both clases (and a bunch of clases > > they needed), cleaned them to work in gwt's client side and it all > > worked wonderfully. > > > The question is: SUN's JRE source code licensing allows me to do this > > and publish it? And under which license? And as a bonus: What I'm > > allowed to do with it (or not allowed to do)? > > > Thankyou -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-tool...@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.