So.  from the gwtquake, I ripped your:

package java.io;

public abstract class OutputStream {

// not abstact because of some gwt strangeness
public abstract void write(int b) throws IOException;

public void write(byte[] ba) throws IOException {
write(ba, 0, ba.length);
}

...

and I ripped the:

package java.io;

public class ByteArrayOutputStream extends OutputStream {

  protected int count;
  protected byte[] buf;
 
  public ByteArrayOutputStream() {
    this(16);
  }
  
...


-----------------------------------------


I have the code:
ByteArrayOutputStream bos = new ByteArrayOutputStream ();
bos.write(1);

And that works fine.

But then I have the code:
OutputStream bos = new ByteArrayOutputStream ();
bos.write(1);

And it fails with:

[ERROR] [] - Line 139: The method write(int) is undefined for the type 
OutputStream



But it is defined.  I have tried putting in dummy bodies, declaring things 
abstract, non-abstract, changing the throws declaration, changing the class 
declaration, removing those @override from the child classes.  to no avail. 
 I have tried changing the inherits of the various components, changing the 
names of the inherit files, changing blahblahblah.  ridiculous number of 
things.



My question is two fold:

1.  How should I go about debugging this?  Trying random things is not 
wonderful.
2.  Is there a list of "gotchas" for GWT?  (Things that should work but 
fail)


Thanks,

-tim





-- 
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/-/P9nlX2VolpIJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to