Git Product home page Git Product logo

Comments (6)

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.bruce on 2006-09-21 19:41:42

  • Labels added: Milestone-1.2RC

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.bruce on 2006-09-21 19:52:57

  • Labels added: Milestone-1_2_RC
  • Labels removed: Milestone-1.2RC

from gwt.

dankurka avatar dankurka commented on July 21, 2024
Will be fixed in next release.  Here's a slightly more straightforward way to
reproduce the same bug without using local classes:

public class MethodBindTest extends GWTTestCase {

  private static String result = null;

  private static abstract class Abstract implements Go {
    private final class Nested implements Go {
      public void go() {
        result = "wrong";
      }

      void nestedTrigger() {
        Abstract.this.go();
      }
    }

    void trigger() {
      new Nested().nestedTrigger();
    }
  }

  private final class Concrete extends Abstract {
    public void go() {
      result = "right";
    }
  }

  private interface Go {
    void go();
  }

  public String getModuleName() {
    return "com.google.gwt.dev.jjs.CompilerSuite";
  }

  public void testMethodBinding() {
    new Concrete().trigger();
    assertEquals("right", result);
  }

}

Reported by gwt.team.scottb on 2006-10-11 20:21:33

  • Status changed: FixedNotReleased

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by gwt.team.jgw on 2006-10-31 16:53:44

  • Status changed: Fixed

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by [email protected] on 2008-04-28 23:18:44

from gwt.

dankurka avatar dankurka commented on July 21, 2024

Reported by [email protected] on 2011-02-09 00:10:59

  • Labels added: Milestone-1_2-RC
  • Labels removed: Milestone-1_2_RC

from gwt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.