[gwt-contrib] RR : Add RpcRequestBuilder to RemoteServiceProxy

2009-03-18 Thread BobV
The attached patch extracts a configuration API for use by RemoteServiceProxy. This semantic API allows developers to override RPC proxy behavior based on intent, rather than interpreting the status of a RequestBuilder after the fact. Diffstat: client/rpc/RpcRequestBuilder.java | 212

[gwt-contrib] Re: RR : Add RpcRequestBuilder to RemoteServiceProxy

2009-03-18 Thread BobV
Committed to trunk at r5045 with a test added per Ray Ryan's comments at http://gwt-code-reviews.appspot.com/13804/show. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~-

[gwt-contrib] Re: RpcRequestBuilder

2009-03-18 Thread BobV
On Wed, Mar 18, 2009 at 7:44 PM, Ray Cromwell wrote: > My only criticism of this design is that it only captures a part of the use > cases where the transport mechanism needs override. That is, it helps in > cases where one is making HTTP requests, and needs to modify HTTP request > parameters or

[gwt-contrib] Re: ImageBundle pruning

2009-03-19 Thread BobV
The original idea was to have some kind of "ReachabilityOracle" that could tell a Linker if some Java method were still contained in the compiled JS output. The Generator would create a task-list of resources to add to the compiled output, and it would be the Linker's responsibility to add that r

[gwt-contrib] Re: [google-web-toolkit commit] r5080 - Removes the PermutationWorkerFactory.lazyFactories cache.

2009-03-25 Thread BobV
On Wed, Mar 25, 2009 at 11:44 AM, wrote: > > Author: sco...@google.com > Date: Wed Mar 25 11:12:37 2009 > New Revision: 5080 > > Modified: >    trunk/dev/core/src/com/google/gwt/dev/PermutationWorkerFactory.java > > Log: > Removes the PermutationWorkerFactory.lazyFactories cache. LGTM -- Bob

[gwt-contrib] Adding ClientBundle to trunk

2009-03-25 Thread BobV
After 16+ months of on-and-off development, ClientBundle (nee ImmutableResourceBundle) is moving to GWT trunk. $ find user/src/com/google/gwt/resources/ user/test/com/google/gwt/resources/ -name *.java | xargs wc | grep total 9871 34391 317990 total The com.google.gwt.resources.Resources

[gwt-contrib] Re: Adding ClientBundle to trunk

2009-03-25 Thread BobV
On Wed, Mar 25, 2009 at 7:57 PM, Ray Cromwell wrote: > Awesome. With regards to StyleInjector, one feature I'd ask for is the > ability to control where in the cascade it injects. For example, I use IRB > in Chronoscope to inject GWT widget Themes, but what happens is, this > overrides any themes

[gwt-contrib] RR : Fix ImageResource de-duplication

2009-03-27 Thread BobV
The attached patch re-adds image de-duplication to ClientBundle's ImageBundleBuilder. (It was there at some point, but disappeared along the way). The patch also ensures that the ImageResource test is run in a no-inlining permutation, which would have allowed me to see this error on my mac. Diffs

[gwt-contrib] Re: RR : Fix ImageResource de-duplication

2009-03-27 Thread BobV
On Fri, Mar 27, 2009 at 12:00 PM, Ray Ryan wrote: > Kindly enable my tooling dependency: http://gwt-code-reviews.appspot.com/15802 -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~-

[gwt-contrib] Add StyleInjector to GWT trunk

2009-03-31 Thread bobv
Reviewers: rjrjr, Description: This version of StyleInjector improves upon the incubator version by extending the IE6 version to include a workaround to limit the number of times createStyleSheet is called. It also adds injectStyleSheetAfter() and injectStyleSheetBefore() to allow for greater co

[gwt-contrib] Use class seed functions in -XdisableClassMetadata mode

2009-03-31 Thread bobv
Reviewers: scottb, rjrjr, Description: This patch changes class literal setup to pass the class's seed function into createForClass when a seed function is available for the type. The behavior of Class.getName() in -XdisableClassMetadata mode is changed to return "Class$" for instantiable types

[gwt-contrib] RR : Fix ICE with SingleJsoTypes returning array types

2009-03-31 Thread bobv
Reviewers: jat, scottb, Description: This patch fixes a compiler exception relating to SingleJsoImpl types that have array return types. The bug stems from the fact that JArrayType extends JClassType, but JArrayType.isClass() returns null. The fix is to add an explicit check for array types to C

[gwt-contrib] Re: Use class seed functions in -XdisableClassMetadata mode

2009-03-31 Thread BobV
On Tue, Mar 31, 2009 at 8:12 PM, Scott Blum wrote: > This seems kinda hacky since you could recompute the seed func name at > compile time during GenerateJavaScriptAST? I thought about that, but discounted it because GenerateJavaScriptAST would have to take a look at the pruned / mangled / opt

[gwt-contrib] Re: RR : Fix ICE with SingleJsoTypes returning array types

2009-03-31 Thread BobV
Committed at r5142. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-01 Thread bobv
http://gwt-code-reviews.appspot.com/15803/diff/1/4 File user/src/com/google/gwt/dom/client/StyleInjector.java (right): http://gwt-code-reviews.appspot.com/15803/diff/1/4#newcode42 Line 42: return injectStyleSheet(contents); On 2009/04/01 20:05:03, rjrjr wrote: > Your public api implies promises

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-02 Thread bobv
[+Ray Cromwell] @RayC, What was the exact problem that you were having without an insertBefore/After method? These methods are somewhat problematic to implement in a least-surprise way on IE owing to the pigeonhole principle unless the API is changed to return some kind of token instead of a

[gwt-contrib] Re: Use class seed functions in -XdisableClassMetadata mode

2009-04-02 Thread BobV
On Tue, Mar 31, 2009 at 9:09 PM, BobV wrote: > On Tue, Mar 31, 2009 at 8:12 PM, Scott Blum wrote: >> This seems kinda hacky since you could recompute the seed func name at >> compile time during GenerateJavaScriptAST? > >  I thought about that, but discounted it because &g

[gwt-contrib] Re: code review requested - allow OpenJDK to compile GWT

2009-04-06 Thread BobV
> Here is the patch which does what Scott suggested.  Any objections? LGTM -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Add StyleInjector to GWT trunk

2009-04-06 Thread BobV
StyleInjector committed to trunk at r5185. @RayC, I added an assertion that there is a head tag. @RayR, The line lengths seem to be ok according to the eclipse formatting rules checked into trunk. I added notes to the Javadoc indicating that not all StyleElements returned are necessarily u

[gwt-contrib] RFC : Adding deprecations to gwt.xml files

2009-04-06 Thread BobV
I'm in the process of migrating ClientBundle into trunk and it occurred to me that even if you remove the use of all deprecated types from your code, your module might still inherit an otherwise-unused module. What do you think about adding another tag to gwt.xml as follows? http://google.com

[gwt-contrib] Re: RFC : Adding deprecations to gwt.xml files

2009-04-06 Thread BobV
On Mon, Apr 6, 2009 at 1:28 PM, Bruce Johnson wrote: > Sounds pretty useful. We should lock its behavior down more, though. Maybe Locking it down is just going to get in the way because we can't cover all of the types of messages that you'd necessarily want to be able to convey in tag attributes

[gwt-contrib] Re: RFC : Adding deprecations to gwt.xml files

2009-04-06 Thread BobV
> I don't think that handles the most common use case, though. Wouldn't the > most common thing be, "Don't use this; use "? Most people will go to > the absolute minimum trouble necessary, so it's unlikely people would be > included to create an actual URL to point to. (IMHO) I'm thinking of the

[gwt-contrib] Re: RFC : Adding deprecations to gwt.xml files

2009-04-06 Thread BobV
> How does that manifest as XML? http://google.com/something"; /> where both attributes are optional. The URL will be presented by using the AbstractTreeLogger.log() method that takes a HelpInfo object. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~---

[gwt-contrib] Re: Error message after ClientBundle/CssResource upgrade

2009-04-07 Thread BobV
On Tue, Apr 7, 2009 at 1:35 PM, Eric Ayers wrote: > [ERROR] The specified property 'name' is not of the correct type; found > 'ConfigurationProperty' expecting 'BindingProperty' ModuleDefSchema line 794 is producing a bad error message, that should have included the name of the property, not the

[gwt-contrib] Re: [google-web-toolkit commit] r5209 - Added a hack to confirm that the flaky RPCSuite failure is what we think it is.

2009-04-10 Thread BobV
ky RPCSuite failure is what we think it > is. > > Review by: bobv (TBR) LGTM -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] RR : Fix runAsync with file: URLs in Safari, Firefox

2009-04-13 Thread bobv
Reviewers: spoon, scottb, Description: Some user-agents return status code 0 when operating off of file: URLs. This patch gets Showcase working from local files. Please review this at http://gwt-code-reviews.appspot.com/20801 Affected files: user/src/com/google/gwt/core/client/AsyncFragmentL

[gwt-contrib] Re: RR : Fix runAsync with file: URLs in Safari, Firefox

2009-04-13 Thread BobV
On Mon, Apr 13, 2009 at 11:38 AM, Scott Blum wrote: > LGTM. Thanks. Committed at r5215. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~

[gwt-contrib] RR : Chunk the JavaScript in the initial fragment

2009-04-13 Thread bobv
Reviewers: bruce, scottb, knorton, spoon, Description: This patch will alter the encoding of the initial fragment so that the browser will evaluate it in chunks. Chunking the evaluation has beneficial usability effects because the browser will periodically unblock the event loop and this helps t

[gwt-contrib] Re: RR : Chunk the JavaScript in the initial fragment

2009-04-13 Thread BobV
On Mon, Apr 13, 2009 at 2:40 PM, wrote: > The code LG, one high-level comment about the design.  Assuming we're ok > with the design implications, this seems good. The never-fail way to do this would be to have JsSourceGeneration visitor indicate offset values of top-level statements in the str

[gwt-contrib] Re: RR : Chunk the JavaScript in the initial fragment

2009-04-13 Thread BobV
On Mon, Apr 13, 2009 at 2:55 PM, Scott Blum wrote: > Actually, I am going to have to torpedo this (sorry!).  It just occurred to > me that while comments are only a hypothetical problem, string literals are > a real, actual problem that could cause problems today.  A string literal > with mismatc

[gwt-contrib] ImmutableResourceBundle deprecated, move to ClientBundle

2009-04-13 Thread BobV
I've deprecated the public ImmutableResourceBundle interfaces in the incubator project to encourage users to migrate to the ClientBundle series of interfaces that are now part of GWT trunk. The IRB code in the incubator project will not be removed for the foreseeable future, but all future develo

[gwt-contrib] Re: ImmutableResourceBundle deprecated, move to ClientBundle

2009-04-14 Thread BobV
On Tue, Apr 14, 2009 at 9:02 AM, dflorey wrote: > Good news! Are there plans to consolidate ClientBundle and i18n > messages & constants? > It would be very nice to have a single bundle for all resources of a > widget to streamline the widget cusomization. As an interim step, look at GwtCreateRe

[gwt-contrib] Re: Hierarchy of property values?

2009-05-05 Thread BobV
Here's my original email to Freeland: """ What does this mean for generators that are sensitive to the user.agent property (or any other property that may be extended)? Imagine that a common component has a CssResource with an "@if user.agent safari" rule. The end-developer comes along and exte

[gwt-contrib] Re: I've implemented Java stack trace support for web mode

2009-05-06 Thread BobV
On Wed, May 6, 2009 at 4:15 PM, Alex Epshteyn wrote: > Yes, we discussed it some time ago. How is that coming along? The symbol maps are emitted into the -aux directory. @Alex, what technique are you using? -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--

[gwt-contrib] Re: I've implemented Java stack trace support for web mode

2009-05-07 Thread BobV
On Wed, May 6, 2009 at 4:49 PM, Alex Epshteyn wrote: > I'm using static code rewriting at the Java source level to maintain a > virtual stack.  It's actually working out very well so far.  Getting > surprisingly good results for code size, efficiency, and correctness. Could you provide some numb

[gwt-contrib] Add @external to CssResource

2009-05-20 Thread bobv
Reviewers: , Description: This patch adds an @external directive to the CSS system to allow for selective non-obfuscation of identifiers and to bypass strict-mode checks. Please review this at http://gwt-code-reviews.appspot.com/33827 Affected files: user/src/com/google/gwt/resources/client/

[gwt-contrib] Add mhtml support to ClientBundle

2009-05-21 Thread bobv
Reviewers: rjrjr, jgw, Description: This patch adds support for bundling ClientBundle resources into a single mhtml document to reduce the total number of round trips required in IE6. It furthermore enables the use of data: urls for IE8. Specifics: - The mhtml format is defined in rfc 2557;

[gwt-contrib] Improve SingleJso cast and type hierachy robustness

2009-05-23 Thread bobv
Reviewers: , Description: This patch improves the correctness of SingleJso types by following all super-interfaces when calculating singleJso data. Additionally, casts to singleJso interfaces will trigger a rescue of the concrete JSO type. Please review this at http://gwt-code-reviews.appspot.

[gwt-contrib] Re: Speed up JsInliner.InliningVisitor.endVisit()

2009-05-26 Thread bobv
http://gwt-code-reviews.appspot.com/34820/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsInliner.java (right): http://gwt-code-reviews.appspot.com/34820/diff/1/2#newcode262 Line 262: public ComplexityEstimator() { } Unnecessary constructor. http://gwt-code-reviews.appspot.com/34820/diff/1/2

[gwt-contrib] RR : Begin migration of CssResource to strict-by-default behavior

2009-05-29 Thread bobv
Reviewers: rjrjr, Message: Take 2 at sending email message. Description: Add a @NotStrict annotation. Warn unless one of @Strict or @NotStrict annotation is present or the CssResource.strictAccessors module property is set. Update tests to compile without warnings. Please review this at http:

[gwt-contrib] Re: Make Class.getName() useful when class metadata is disabled

2009-05-29 Thread bobv
Reviewers: scottb, Message: Incorporated your comments. http://gwt-code-reviews.appspot.com/34822/diff/1/2 File dev/core/src/com/google/gwt/dev/jjs/ast/JClassLiteral.java (right): http://gwt-code-reviews.appspot.com/34822/diff/1/2#newcode68 Line 68: if (type instanceof JClassType && !(type ins

[gwt-contrib] Re: RR : Begin migration of CssResource to strict-by-default behavior

2009-05-29 Thread bobv
New patch with feedback. http://gwt-code-reviews.appspot.com/34824/diff/1/3 File user/src/com/google/gwt/resources/rg/CssResourceGenerator.java (right): http://gwt-code-reviews.appspot.com/34824/diff/1/3#newcode221 Line 221: + "using an @external declaration for unobfuscated classes."); Done.

[gwt-contrib] Re: Create overridesView lazily in StandardClassMember

2009-06-01 Thread bobv
LGTM, just some nits. http://gwt-code-reviews.appspot.com/33835/diff/1/2 File dev/core/src/com/google/gwt/core/ext/soyc/impl/StandardClassMember.java (right): http://gwt-code-reviews.appspot.com/33835/diff/1/2#newcode44 Line 44: private SortedSet overridesView = null; The explicit initializatio

[gwt-contrib] Re: Fix checkstyle violation

2009-06-02 Thread bobv
LGTM http://gwt-code-reviews.appspot.com/33839 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Suggestion for OOPHM

2009-06-05 Thread BobV
An even-crazier setup would be that the locally-installed plugin is just a sled for downloading the actual plugin guts from the server. This way, a single plugin installation could work with different versions of the OOPHM host code. -- Bob Vawter Google Web Toolkit Team --~--~-~--~

[gwt-contrib] Re: Changing JsArray to JsArray

2009-06-08 Thread BobV
Wouldn't this break existing code, such as? JsArray noGenericParams = ; SomeJso jso = noGenericParams.get(i).cast(); -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~

[gwt-contrib] Re: bump delayTestFinish timeout of ImageResourceTest.testDedup

2009-06-09 Thread bobv
LGTM http://gwt-code-reviews.appspot.com/33846 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: initial load sequence for runAsync's

2009-06-10 Thread bobv
The one thing that really stands out is that this has an optimization-dependent failure mode where a runAsync call could get optimized out of a method. http://gwt-code-reviews.appspot.com/33848/diff/1/4 File dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java (right): http://

[gwt-contrib] Re: Allow generators fast access to "source path" resources

2009-06-12 Thread bobv
LGTM. http://gwt-code-reviews.appspot.com/40801/diff/1/2 File dev/core/src/com/google/gwt/core/ext/GeneratorContext.java (right): http://gwt-code-reviews.appspot.com/40801/diff/1/2#newcode76 Line 76: * being compiled. "containing all resources in the module's source paths" That it's from the

[gwt-contrib] Re: Comment on OverlayTypes in google-web-toolkit

2009-06-15 Thread BobV
On Mon, Jun 15, 2009 at 7:26 AM, Joel Webber wrote: > I'm assuming we'd have to rewrite new and field access operators to these > classes in the hosted-mode classloader, right? I haven't messed with the > hosted-mode classloader in a *very* long time, so we may be doing this > already for all I kn

[gwt-contrib] Re: initial load sequence for runAsync's

2009-06-15 Thread bobv
LGTM http://gwt-code-reviews.appspot.com/33848/diff/4002/4005 File dev/core/src/com/google/gwt/core/ext/soyc/impl/SplitPointRecorder.java (right): http://gwt-code-reviews.appspot.com/33848/diff/4002/4005#newcode68 Line 68: String location = splitPointMap.get(sp); assert location != null http:/

[gwt-contrib] RR : Allow user-provided bridge classes in hosted mode

2009-06-15 Thread bobv
Reviewers: scottb, Message: Requesting review Description: This patch would allow user-provided code to escape from the CompilingClassLoader sandbox. Use case: - Create a type that should be used only in hosted mode which lives somewhere in the classpath - Create a web-mode implementation

[gwt-contrib] RR : Make ClientBundle and CssResource generators faster

2009-06-15 Thread bobv
Reviewers: Dan Rice, Message: Requesting review Description: This change speeds up the ClientBundle and CssResource generators. - Use the compiler's ResourceOracle instead of the ClassLoader to find resources - Add a caching mechanism to ClientBundle's ResourceContext to allow ResourceGenerator

[gwt-contrib] Re: [google-web-toolkit commit] r5537 - Ant rework for speed:

2009-06-16 Thread BobV
On Tue, Jun 16, 2009 at 12:46 AM, Freeland Abbott wrote: > Ping.  Bob, I think you had special interest in this one. ;-) ant clear dist-dev && cd user && ant test does the right thing. LGTM. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://gr

[gwt-contrib] Re: RR : Make ClientBundle and CssResource generators faster

2009-06-16 Thread BobV
Thanks for the review. Committed at r5566. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: RR : Allow user-provided bridge classes in hosted mode

2009-06-16 Thread bobv
@Scott, Per our IM conversation, I've renamed the new concept to "GwtScriptOnly". Could you check this over once more before I commit it? @John, Thanks for the review. http://gwt-code-reviews.appspot.com/34836 --~--~-~--~~~---~--~~ http://groups.google.com

[gwt-contrib] Re: Fix issue 3677: gwt-module.dtd does not reflect changes to configuration properties

2009-06-17 Thread bobv
LGTM http://gwt-code-reviews.appspot.com/34819 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Prevent JsInliner from triggering infinite expansion

2009-06-17 Thread bobv
Reviewers: scottb, Message: Requesting review. http://gwt-code-reviews.appspot.com/42801/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsInliner.java (right): http://gwt-code-reviews.appspot.com/42801/diff/1/2#newcode877 Line 877: blacklist.add(f); This is the main fix. http://gwt-code-rev

[gwt-contrib] Re: Prevent JsInliner from triggering infinite expansion

2009-06-17 Thread BobV
On Thu, Jun 18, 2009 at 1:10 AM, wrote: > LGTM Thanks. I renamed the local variable and committed it at r5585. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~---

[gwt-contrib] Re: Comment on RpcDirectEval in google-web-toolkit

2009-06-18 Thread BobV
On Wed, Jun 17, 2009 at 10:38 PM, wrote: > Has this/is this going anywhere?  Has actual work been done on the > implementation? Glad you asked: http://google-web-toolkit.googlecode.com/svn/changes/bobv/derpc/ I'm working on getting the initial version merged into trunk to get mo

[gwt-contrib] Re: fixes runAsync initial load sequences and adds a test case

2009-06-18 Thread bobv
The fix looks good, but I don't think that any tests beyond the first are validating that the load sequence is working correctly. http://gwt-code-reviews.appspot.com/43802/diff/1/4 File user/test/com/google/gwt/dev/jjs/InitialLoadSequence.gwt.xml (right): http://gwt-code-reviews.appspot.com/438

[gwt-contrib] RR : Export typeids through SymbolMap data

2009-06-19 Thread bobv
Reviewers: Lex, scottb, Message: Requesting review Description: This change adds an additional method to the linker SymbolData API to export typeids. This data will be used by the derpc code. Please review this at http://gwt-code-reviews.appspot.com/41802 Affected files: M dev/core/src/com

[gwt-contrib] Add getJsniSignature() to typeinfo.JAbstractMethod

2009-06-22 Thread bobv
Reviewers: Lex, scottb, Message: Review requested Description: I keep writing the same utility method in my Generator types to create a JSNI reference to a given JMethod. Please review this at http://gwt-code-reviews.appspot.com/44802 Affected files: M dev/core/src/com/google/gwt/core/ext/t

[gwt-contrib] Re: Add getJsniSignature() to typeinfo.JAbstractMethod

2009-06-22 Thread BobV
Thanks, John. Committed at r5595. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Fix JsInliner for mutually-recursive functions

2009-06-22 Thread bobv
Reviewers: scottb, Lex, Message: Request review. http://gwt-code-reviews.appspot.com/44803/diff/1/2 File dev/core/src/com/google/gwt/dev/js/JsInliner.java (right): http://gwt-code-reviews.appspot.com/44803/diff/1/2#newcode916 Line 916: } Actual changes are above. From here to the next comment

[gwt-contrib] Add ArtificalRescue annotation to compiler

2009-06-22 Thread bobv
Reviewers: scottb, Message: Requesting review. @Scott, if you're still tied up from last week, let me know and I'll kick this over to Lex, but I think that you might remember some of the design details from the in-person chat we had about it. Description: The ArtificialRescue annotation is used

[gwt-contrib] Add Impl.getNameOf() to expose JNameOf nodes to Java code

2009-06-22 Thread bobv
Reviewers: scottb, Message: Review requested. Description: Adds an Impl.getNameOf() method which ReplaceRebinds will replace with a JNameOf node. The JNameOf node is currently used internally to provide class literals with meaningful names when class metadata has been compiled out of the module

[gwt-contrib] Re: Adding ugly hack to allow developers to optionally disable history #hash setting on IE6.

2009-06-23 Thread bobv
LGTM http://gwt-code-reviews.appspot.com/44804 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Allow detached JDO objects to be transferred via RPC

2009-06-29 Thread bobv
Please extract the expando work to the gwt.core.client package and add test cases for it, as it's a generally-useful facility to offer. Needs tests of the JDO testcases. @Cromwellian, The expando field just reserves a bit of the Object-field namespace since it's lazily initialized. http://g

[gwt-contrib] Re: Add Impl.getNameOf() to expose JNameOf nodes to Java code

2009-06-29 Thread bobv
Ping http://gwt-code-reviews.appspot.com/46802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Add ArtificialRescue annotation to compiler

2009-06-29 Thread bobv
Ping http://gwt-code-reviews.appspot.com/46801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Allow detached JDO objects to be transferred via RPC

2009-06-29 Thread bobv
http://gwt-code-reviews.appspot.com/47807/diff/1/9 File user/src/com/google/gwt/user/client/rpc/WeakMapping.java (right): http://gwt-code-reviews.appspot.com/47807/diff/1/9#newcode31 Line 31: public static Object get(Object instance, String key) { On 2009/06/29 15:34:02, Dan Rice wrote: > I'm no

[gwt-contrib] Re: Add Impl.getNameOf() to expose JNameOf nodes to Java code

2009-06-30 Thread bobv
Thanks for the review; the JSNI lookup logic had already been extracted into JsniRefLookup by Lex some number of weeks ago. Committed at r5640. http://gwt-code-reviews.appspot.com/46802 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contr

[gwt-contrib] Re: Allow @def to be retrieved as a String from CssResource

2009-06-30 Thread bobv
I think the following scenario should be made to work. my.css: @def shadow #abc .shadow { color: shadow; } my.java MyCss implements CssResource { String shadow(); @ClassName("shadow") String shadowClass(); } http://gwt-code-reviews.appspot.com/50804/diff/1/5 File user/src/com/goo

[gwt-contrib] Re: Add ArtificialRescue annotation to compiler

2009-07-02 Thread bobv
On 2009/06/29 13:40:16, bobv wrote: > Ping Ping. http://gwt-code-reviews.appspot.com/46801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Improve correctness of UnicodeEscapingTest

2009-07-02 Thread bobv
Reviewers: jat, Message: Requesting review. Description: Splits UnicodeEscapingTest.testClientToServerBMP() into two methods so that failures are correctly reported. The current implementation will call finishTest() twice, which will desynchronize the junit framework, making failures harder to p

[gwt-contrib] Re: Improve correctness of UnicodeEscapingTest

2009-07-02 Thread bobv
http://gwt-code-reviews.appspot.com/48806 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: Add ArtificialRescue annotation to compiler

2009-07-03 Thread bobv
Updated. http://gwt-code-reviews.appspot.com/46801/diff/1041/24 File dev/core/src/com/google/gwt/dev/javac/ArtificialRescueChecker.java (right): http://gwt-code-reviews.appspot.com/46801/diff/1041/24#newcode282 Line 282: return "Cannot refer to fields on " + "array or primitive types"; On 2009/

[gwt-contrib] Re: Add ArtificialRescue annotation to compiler

2009-07-03 Thread bobv
Ignore patch set 5; the change to JProgram.traverse() is necessary. http://gwt-code-reviews.appspot.com/46801/diff/5008/4010 File dev/core/src/com/google/gwt/dev/jjs/ast/JProgram.java (right): http://gwt-code-reviews.appspot.com/46801/diff/5008/4010#newcode1087 Line 1087: visitor.accept(new Arr

[gwt-contrib] Re: deRPC review comments

2009-07-04 Thread BobV
Thanks for taking a look. I've updated my client. I think the dev/ comments have been subsumed by the latest version of the patch at: http://gwt-code-reviews.appspot.com/46801/show > bad indent in DynaTable.gwt.xml Fixed. > CustomFieldSerializerValidator looks like checkstyle fixing; separa

[gwt-contrib] Re: deRPC review comments

2009-07-06 Thread BobV
> I won't kick and scream about Pair, but it does suggest this is a general > class that may be a larger issue for a more interesting example. I agree; I'll be in Atlanta tomorrow through Friday. Let's have a chat with Scott about maybe rearranging the various collection types used in the compi

[gwt-contrib] Re: add a test for AsyncFragmentLoader

2009-07-06 Thread bobv
LGTM; Sorry for the delay. http://gwt-code-reviews.appspot.com/47806/diff/1/3 File dev/core/src/com/google/gwt/dev/jjs/impl/CodeSplitter.java (right): http://gwt-code-reviews.appspot.com/47806/diff/1/3#newcode413 Line 413: private static void installInitialLoadSequenceField(JProgram program, Ad

[gwt-contrib] Resolve issue 3826

2009-07-13 Thread bobv
Reviewers: scottb, Message: Request review. Description: This patch ensures that a after an will correctly replace the previously-defined implementation. Please review this at http://gwt-code-reviews.appspot.com/47813 Affected files: M dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java

[gwt-contrib] Re: Resolve issue 3826

2009-07-13 Thread bobv
I've changed ModuleDef to track the string names internally. This makes all of the added code in defineLinker() sanity-checking code. http://gwt-code-reviews.appspot.com/47813/diff/1/2 File dev/core/src/com/google/gwt/dev/cfg/ModuleDef.java (right): http://gwt-code-reviews.appspot.com/47813/di

[gwt-contrib] RR : Emulate JS stack traces (phase 1)

2009-07-14 Thread bobv
Reviewers: scottb, Lex, Message: Review requested. http://gwt-code-reviews.appspot.com/47816/diff/1/4 File dev/core/src/com/google/gwt/dev/jjs/impl/GenerateJavaScriptAST.java (right): http://gwt-code-reviews.appspot.com/47816/diff/1/4#newcode2125 Line 2125: jsProgram.setIndexedFunctions(indexe

[gwt-contrib] Re: RR : Emulate JS stack traces (phase 1)

2009-07-20 Thread bobv
Ping. http://gwt-code-reviews.appspot.com/47816 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] RR : Fix a SingleJsoImpl web-mode calculation bug

2009-07-20 Thread bobv
Reviewers: Lex, scottb, Message: Review requested. Description: JTypeOracle.computeSingleJsoImplData() was using an incorrect test to determine if an interface is a tag interface. It was looking at the number of methods declared on the interface type without looking at the interface's supertype

[gwt-contrib] Re: RR : Fix a SingleJsoImpl web-mode calculation bug

2009-07-20 Thread bobv
Thanks. The extra test types were incorporated into singlejso.TypeHierarchyTest. Committed at r5756. http://gwt-code-reviews.appspot.com/51805 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--

[gwt-contrib] Misc deRPC fixes

2009-07-21 Thread bobv
Reviewers: amitmanjhi, Message: Request review. Description: This patch fixes three small issues: 1) Canonicalization of inner array type names 2) Ensuring that primitive return types for service methods cause their boxed counterparts to be rescued since return types are boxed over the wir

[gwt-contrib] Re: Misc deRPC fixes

2009-07-21 Thread bobv
Committed at r5762. http://gwt-code-reviews.appspot.com/54801 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Re: JSO bug in compiler

2009-07-21 Thread bobv
Implementation changes LGTM. The internals of the compiler really need more documentation so other developers have a chance in hell of getting the zen of the current implementation when implementing new features. http://gwt-code-reviews.appspot.com/54802/diff/1/2 File dev/core/src/com/google/gw

[gwt-contrib] Re: RR : Emulate JS stack traces (phase 1)

2009-07-22 Thread bobv
I don't think getting this thing wrapped up will take too much more work. http://gwt-code-reviews.appspot.com/47816/diff/1/5 File dev/core/src/com/google/gwt/dev/js/JsStackEmulator.java (right): http://gwt-code-reviews.appspot.com/47816/diff/1/5#newcode132 Line 132: // $stack[$stackDepth = stac

[gwt-contrib] Re: RR : Emulate JS stack traces (phase 1)

2009-07-22 Thread bobv
Ready for another look. Major changes: - No special handling for throw statements. - Force all try/finally to be try/catch/finally to ensure that a caught JavaScriptException would have the correct stack data as well as code running in the finally block. - Locations always record when ex

[gwt-contrib] Re: fix a buffer overflow in AsyncFragmentLoader

2009-07-22 Thread bobv
LGTM. http://gwt-code-reviews.appspot.com/54803 --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolkit-Contributors -~--~~~~--~~--~--~---

[gwt-contrib] Force emulated stack traces when running JUnit tests?

2009-07-22 Thread BobV
Should running a web-mode test case always turn on the emulated stack trace code? You would get stack traces entries like: Unknown.bx(YourClass.java:1234) regardless of which browser you're on and the type of exception, Java-derived or native. The cost is code bloat: 64k versus 108k for the Core

[gwt-contrib] Re: Force emulated stack traces when running JUnit tests?

2009-07-23 Thread BobV
> Would "always on" mean that it generates code even for browsers that have > native stack traces (i.e. FF)? Yes, for the purpose of giving you consistency between browsers. > Generally, as much as I hate to say it, it seems we'd want variations of the > tests both with and without stack trace c

[gwt-contrib] Re: Force emulated stack traces when running JUnit tests?

2009-07-23 Thread BobV
> Technically, wouldn't it just mean we should not pin down the value of the > deferred binding property that controls it? It would double the number of > permutations, tho. But wouldn't we actually want to run the instrumented code, to make sure that the instrumentation itself doesn't break some

[gwt-contrib] Re: Force emulated stack traces when running JUnit tests?

2009-07-23 Thread BobV
On Thu, Jul 23, 2009 at 1:25 PM, Bruce Johnson wrote: > Yes, I think we would want to. My point is that we also would want to run > the non-instrumented code. I have to think there could be subtle downstream > behavioral differences (e.g. compiler optimizations that do/don't happen) > based on whe

[gwt-contrib] Re: Force emulated stack traces when running JUnit tests?

2009-07-23 Thread BobV
@Bruce, Per our phone conversation, JUnit will turn on the emulated stack trace code for browsers that do not provide stack data for native exceptions. -- Bob Vawter Google Web Toolkit Team --~--~-~--~~~---~--~~ http://groups.google.com/group/Google-Web-Toolki

[gwt-contrib] Re: Force emulated stack traces when running JUnit tests?

2009-07-23 Thread BobV
Here's a null-pointer deref in Safari. The location data here is accurate, you can call up RequestBuilder.java and see on line 396 that it's firing onResponseReceived. The offending Java code is: ((String) null).charAt(55); The exception reported through the JUnit console is com.google.gwt.c

  1   2   3   4   5   6   7   8   9   >