Thursday, July 19, 2018

Problem with replacing the class

 I`m having troubles to replace one class by another

This is the class I want to replace:

package delightex.math.fp;

public class FloatBits {
public static int floatToRawIntBits(float v) { return Float.floatToIntBits(v); }
public static float intBitsToFloat(int v) { return Float.intBitsToFloat(v); }

So I have a better one in FloatBitsJs with the same API. 
And this I have in module.gwt.xml: 

<replace-with class="delightex.math.fp.FloatBitsJs">
<when-type-is class="delightex.math.fp.FloatBits"/>

But it does not get replaced. It still generates calls to FloatBits in both super-dev-mode and production modes. 
(Production is single permutation Chrome only "user.agent"="safari")

Any help ?

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 email to
To post to this group, send email to
Visit this group at
For more options, visit

No comments:

Post a Comment