title: Error when trying to use Guava FluentIterable with GWT
body: <p>I'm trying to use Guava 12.0's FluentIterable with GWT 2.0.3, like so:</p>
  
  <pre><code>import com.google.common.collect.FluentIterable;
  
  class FooPresenter {
     // snip
  
     private List&lt;NullSafeCheckBox&gt; asCheckboxes() {
        return FluentIterable.from(getDisplay().getMetricInputs())
           .transform(new Function&lt;HasValueChangeHandlers&lt;Boolean&gt;, NullSafeCheckBox&gt;() {
              @Override
              public NullSafeCheckBox apply(@Nullable HasValueChangeHandlers&lt;Boolean&gt; checkbox) {
                 return (NullSafeCheckBox) checkbox;
              }
           })
           .toImmutableList();
     }
  }
  </code></pre>
  
  <p>However, when I run GWT in dev mode, I get the following error when trying to load the first module:</p>
  
  <pre><code>DEBUG: Validating newly compiled units
    ERROR: Errors in 'jar:file:/home/josh/.m2/repository/com/google/guava/guava-gwt/12.0/guava-gwt-12.0.jar!/com/google/common/math/super/com/google/common/math/LongMath.java'
      ERROR: Line 23: The import java.math cannot be resolved
  </code></pre>
  
  <p>My pom.xml looks like this:</p>
  
  <pre><code>  &lt;dependency&gt;
        &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
        &lt;artifactId&gt;guava&lt;/artifactId&gt;
        &lt;version&gt;12.0&lt;/version&gt;
    &lt;/dependency&gt;
    &lt;dependency&gt;
        &lt;groupId&gt;com.google.guava&lt;/groupId&gt;
        &lt;artifactId&gt;guava-gwt&lt;/artifactId&gt;
        &lt;version&gt;12.0&lt;/version&gt;
    &lt;/dependency&gt;
  </code></pre>
  
  <p>And my Application.gwt.xml sucks in Guava like this:</p>
  
  <pre><code>&lt;!-- Guava --&gt;
  &lt;inherits name="com.google.common.collect.Collect"/&gt;
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>Following the advice in <a href="https://stackoverflow.com/a/11258543/58994">Arcadian's answer</a>, I added gwt-math to my pom.xml and my Application.gwt.xml:</p>
  
  <pre><code>  &lt;!-- Guava --&gt;
    &lt;inherits name="com.google.common.collect.Collect"/&gt;
    &lt;inherits name="com.googlecode.gwt.math.Math" /&gt;
  </code></pre>
  
  <p>Now I get this error when running hosted mode:</p>
  
  <pre><code>DEBUG: Validating newly compiled units
    WARN: Warnings in 'jar:file:/home/josh/.m2/repository/videoplaza-third-party/gwt-incubator/20100204-r1747/gwt-incubator-20100204-r1747.jar!/com/google/gwt/widgetideas/client/impl/GlassPanelImpl.java'
      WARN: Line 30: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'
      WARN: Line 38: Referencing deprecated class 'com.google.gwt.user.client.impl.DocumentRootImpl'
    ERROR: Errors in 'jar:file:/home/josh/.m2/repository/com/google/guava/guava-gwt/12.0/guava-gwt-12.0.jar!/com/google/common/primitives/UnsignedLong.java'
      ERROR: Line 77: The method bitLength() is undefined for the type BigInteger
      ERROR: Line 79: The method longValue() is undefined for the type BigInteger
      ERROR: Line 200: The method valueOf(long) is undefined for the type BigInteger
      ERROR: Line 202: The method setBit(int) is undefined for the type BigInteger
  </code></pre>