JSNI, qualified reference to static method (devmode works fine!)
All,
I'm not sure what to make of this; I have a JSNIBridge class that was
working perfectly in 'devmode' for taking being able to call a Java
method via JavaScript. Here is a snippet:
public static void doRasterTune(String rfId, String digitalTunerId,
double frequency, double bandwidth, String frequencyUnit, String
bandwidthUnit) {
// it's completely empty now for trying to resolve the issue below
}
public static native void define_doProcessHitMethod() /*-{
var that = this;
$wnd.doProcessHit = function(oldId, newId, mousePtX, mousePtY,
xUnit, yUnit) {
return that.@com.hidden.JSNIBridge::doProcessHitRasterTune(Ljava/
lang/String;Ljava/lang/String;DDLjava/lang/String;Ljava/lang/String;)
((oldId, newId, mousePtX, mousePtY, xUnit, yUnit);
}
}-*/;
onModuleLoad, I call:
JSNIBridge.define_doProcessHitMethod();
When I try to compile (gwtc/war), I get the following:
[ERROR] Line 68: Cannot make a qualified reference to the static
method doProcessHit
I've since stripped everything out of "doProcessHit", it's just an
empty method, but I'm still encountering this build error. Does
anyone have any ideas?
--
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-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home