Hi

I have been hunting a bug that only showed itself when my app was
running in the browser.
The problem was that the GWT 1.5.2 compiler produced javascript code
that didnt match the java code.

My situation was the following:

I have the class structure showed below:

interface I {
  void init();
}

class A {
  public A() {
    init();
  }
  private init() {}
}

class B extends A implements I {
  public B() {}
  public void init() {}
}

When instantiating B the javascript wrongly calls B.init() which
resultet in an nullpointer in my app.
Notice that A.init() is private and therefore should not be overloaded
in B.
If I inline the A.init() into the constructor of A thus removing the
method - theres no problem..
My guess is that the I interface is the the key to the problem..?

Is there a bug report on this?
If you cant recreate the scenario - ill be happy to try and make some
real example code.

Kind regards
Simon Vogensen
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to