title: GWT jsinterop java exporting is not working
body: <p>I'm working with GWT and am trying to export a java class to be used in javascript in my HTML. This is the java class I want to export to javascript using jsinterop.
  </p>
  
  <pre><code>package com.example.client;
  
  import jsinterop.annotations.*;
  
  @JsType(isNative = false, namespace = JsPackage.GLOBAL)
  public class Foo {
  
    public int x;
    public int y;
  
    public int sum() {
      return x + y;
    }
  }
  </code></pre>
  
  <p>And this is my javascript in my HTML</p>
  
  <pre><code>&lt;script&gt;
      var foo = new Foo();
      foo.x = 40;
      foo.y = 2;
      foo.sum(); 
  &lt;/script&gt;
  </code></pre>
  
  <p>I am already using the -generateJsInteropExports flag in the compiler arguments and run configurations. 
  However, I still get this error:</p>
  
  <p>Uncaught ReferenceError: Foo is not defined
  at MyProgramName.html: 59 (the line where i try to instantiate it)</p>
  
  <p>Also, using the default namespace doesn't work either. When I use: </p>
  
  <pre><code>var foo = new com.example.client.Foo();
  </code></pre>
  
  <p>I get the same error. Any suggestions?</p>