Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(412)

Issue 1620805: Fix this->window confusion in DevMode

Can't Edit
Can't Publish+Mail
Start Review
Created:
1 year, 5 months ago by stephenh
Modified:
1 year, 1 month ago
Reviewers:
jat, scottb, rdayal
CC:
google-web-toolkit-contributors_googlegroups.com
Base URL:
Visibility:
Public.

Description

Fix for Issue 3069.

Patch Set 1

Total comments: 1

Patch Set 2 : Check null instances in rewritten JSNI methods

Total comments: 3

Patch Set 3 : Move null check

Total comments: 3

Patch Set 4 : Use instance

Unified diffs Side-by-side diffs Delta from patch set Stats Patch
M dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java View 1 2 3 1 chunk +13 lines, -0 lines 0 comments Download
M dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java View 1 2 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 23
stephenh
1 year, 5 months ago #1
scottb
http://gwt-code-reviews.appspot.com/1620805/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpaceOOPHM.java File dev/core/src/com/google/gwt/dev/shell/ModuleSpaceOOPHM.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/1/dev/core/src/com/google/gwt/dev/shell/ModuleSpaceOOPHM.java#newcode77 dev/core/src/com/google/gwt/dev/shell/ModuleSpaceOOPHM.java:77: body = body.substring(0, i + 1) + fun + ...
1 year, 5 months ago #2
stephenh
> > body.substring(0, i + 1) + fun + body.substring(i + 1); > Yuck. Yeah. ...
1 year, 5 months ago #3
jat
But the point is it is almost certainly an error to call a method on ...
1 year, 5 months ago #4
scottb
If there were a very elegant way to make the dev mode behavior always consistent ...
1 year, 5 months ago #5
stephenh
Agreed it's almost certainly an error, I just assumed drifting DevMode to be stricter than ...
1 year, 5 months ago #6
stephenh
Okay, updated the patch. Within the rewritten JSNI methods, before making the jump to javascript, ...
1 year, 5 months ago #7
stephenh
http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java File dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java#newcode35 dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java:35: } I tried a few other places to put ...
1 year, 5 months ago #8
scottb
LGTM w/ nit http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java File dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java#newcode270 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java:270: loadThis(); If make it "Object checkNotNull(Object)" ...
1 year, 5 months ago #9
stephenh
http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java File dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/8001/dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java#newcode270 dev/core/src/com/google/gwt/dev/shell/rewrite/RewriteJsniMethods.java:270: loadThis(); > If make it "Object checkNotNull(Object)" and return ...
1 year, 5 months ago #10
scottb
LGTM http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java File dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java#newcode34 dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java:34: throw new NullPointerException("JSO reference was null"); Oops, I ...
1 year, 5 months ago #11
stephenh
http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java File dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java#newcode34 dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java:34: throw new NullPointerException("JSO reference was null"); > Oops, I ...
1 year, 5 months ago #12
scottb
http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java File dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java (right): http://gwt-code-reviews.appspot.com/1620805/diff/12001/dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java#newcode34 dev/core/src/com/google/gwt/dev/shell/JavaScriptHost.java:34: throw new NullPointerException("JSO reference was null"); "instance" in the ...
1 year, 5 months ago #13
stephenh
> "instance" in the sense of "instance method" Done.
1 year, 3 months ago #14
rdayal
On 2012/02/28 05:16:42, stephenh wrote: > > "instance" in the sense of "instance method" > ...
1 year, 2 months ago #15
rdayal
On 2012/04/09 18:33:00, rdayal wrote: > On 2012/02/28 05:16:42, stephenh wrote: > > > "instance" ...
1 year, 1 month ago #16
stephenh
> We had to roll this back because it broke a bunch of test code ...
1 year, 1 month ago #17
jat
On Tue, May 8, 2012 at 2:38 PM, <stephen.haberman@gmail.com> wrote: > > We had to ...
1 year, 1 month ago #18
stephenh
> it seems likely that external code we can't test also does so True, although ...
1 year, 1 month ago #19
jat
On Tue, May 8, 2012 at 3:23 PM, <stephen.haberman@gmail.com> wrote: > True, although my assumption ...
1 year, 1 month ago #20
stephenh
> I agree, but asking anyone to have to make changes in working code Two ...
1 year, 1 month ago #21
rdayal
Hey Stephen, Thanks for the feedback. Replies inline: On Tue May 08 23:22:49 GMT-400 2012, ...
1 year, 1 month ago #22
stephenh
1 year ago #23
> I'd rather spend that time working on SuperDevMode and moving people
> over to that, where this whole issue of differing implementations
> between web mode and dev mode goes away.

+1 to that.

> I just don't think this issue is one where we should start to break
> backwards compatibility.

That is fine with me. This was issue that wasn't really directly affecting me,
just seemed fun to work on.

> Stephen, what do you think? Would you be amenable to adding the code
> for the flag?

Sure, I'll see what I can do.

- Stephen
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld revision f51cb906c4ad+