Re: Creating a gwt.xml module for a 3rd Party Library

79 views
Skip to first unread message

Joseph Lust

unread,
Nov 19, 2012, 11:17:16 AM11/19/12
to google-we...@googlegroups.com
What kind of 3rd party library? Are you wrapping a 3rd party JS library, or Java library? Please elaborate.

Sincerely,
Joseph

Joseph Lust

unread,
Nov 20, 2012, 7:12:19 PM11/20/12
to google-we...@googlegroups.com
Jeff,

You wrote me that you're interested in wrapping http://commons.apache.org/math/ . This will likely be troublesome since only classes in the JRE Emulation library of GWT can be used. The reason is simply that Javascript is not Java and there are a ton of things you just can't do in JS. These sorts of things can be emulated if one wishes, and the GWT team has done so with the aforementioned classes. You can Super Source some libraries to make them available to the GWT compiler, but if a library uses functions and types that are unavailable in JS (i.e. PhantomReference) then it cannot be done in GWT.

You might be best off pulling out the math functions of interest and trying to get them compiling.

Sincerely,
Joseph

Jeffrey Elrod

unread,
Nov 20, 2012, 8:05:13 PM11/20/12
to google-we...@googlegroups.com

Thanks.  I thought it would be hard.   Best wishes.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/lotFcz8U5iIJ.
To post to this group, send email to google-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Reply all
Reply to author
Forward
0 new messages