Re: Compilation error after 1.5rc2 upgrade
On Aug 26, 11:37 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > >http://code.google.com/p/google-web-toolkit/source/detail?r=3061 > > Thanks for the quick reply. I guess I'd rather see compilation errors, > but why not just implement the code, I wonder? It seems like it's a > simple function, which would be better implemented in one place (the > Collections emulation), than in the client code of each user. It's no > big deal; now that I know, I'll implement it myself. But still... is > this just a symptom of getting to crunch time with some code > incomplete? It's not that simple. The returned sublist is backed by the returning list. Any change to the sublist also changes the parent list. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Compilation error after 1.5rc2 upgrade
Folke, > On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > Folks, > > I've been using 1.5rc1 for a while to develop a project, and it's > > been working fine. When RC2 came out, I figured I should give it a > > try. Lo and behold, my GWTCompiler task now fails as follows: > > > gwt-compile: > > [java] Removing units with errors > > [java][ERROR] Errors in 'file:/C:/Documents%20and%20Settings/ > > kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/ > > BundleSelectorAction.java' > > [java] [ERROR] Line 102: The method subList(int, int) is > > undefined for the type List [...] > > Did the emulation classes change between RC1 and RC2 for some reason? On Aug 26, 4:22 pm, Folke <[EMAIL PROTECTED]> wrote: > Yes > > http://code.google.com/p/google-web-toolkit/source/detail?r=3061 Thanks for the quick reply. I guess I'd rather see compilation errors, but why not just implement the code, I wonder? It seems like it's a simple function, which would be better implemented in one place (the Collections emulation), than in the client code of each user. It's no big deal; now that I know, I'll implement it myself. But still... is this just a symptom of getting to crunch time with some code incomplete? Perhaps an improved compiler error message would be, "this J2SE method is not implemented by GWT emulation libraries." That way, I'd know the error was intentional, and not indicating some kind of classpath error. --kirby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: Compilation error after 1.5rc2 upgrade
Yes http://code.google.com/p/google-web-toolkit/source/detail?r=3061 On Aug 26, 11:15 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Folks, > I've been using 1.5rc1 for a while to develop a project, and it's > been working fine. When RC2 came out, I figured I should give it a > try. Lo and behold, my GWTCompiler task now fails as follows: > > gwt-compile: > [java] Removing units with errors > [java] [ERROR] Errors in 'file:/C:/Documents%20and%20Settings/ > kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/ > BundleSelectorAction.java' > [java] [ERROR] Line 102: The method subList(int, int) is > undefined for the type List > > The code in question is below, a perfectly valid snippet in java > JDK1.5: > Services.YALTA.findBundles(c.getCustId(), 0, 50, > new AsyncCallback>() { > public void onSuccess(List rv) { > if (null == rv) > return; > > EventMapper.getInstance().fireEvent(EventMapper.SERVER_DONE, > new ServerRequestEvent()); > if (rv.size() > 0) { > table.setModel(rv); > > EventMapper.getInstance().fireEvent(EventMapper.BUND_SEL, > rv.get(0)); > Lien 102>> table.setSelected(rv.subList(0, 1)); > } > } > > public void onFailure(Throwable caught) { > Window.alert("Failure " + caught); > } > }); > > Did the emulation classes change between RC1 and RC2 for some reason? > > Thanks, > --kirby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Compilation error after 1.5rc2 upgrade
Folks, I've been using 1.5rc1 for a while to develop a project, and it's been working fine. When RC2 came out, I figured I should give it a try. Lo and behold, my GWTCompiler task now fails as follows: gwt-compile: [java] Removing units with errors [java][ERROR] Errors in 'file:/C:/Documents%20and%20Settings/ kfiles/workspace/yalta/src/com/masergy/yalta/client/controller/ BundleSelectorAction.java' [java] [ERROR] Line 102: The method subList(int, int) is undefined for the type List The code in question is below, a perfectly valid snippet in java JDK1.5: Services.YALTA.findBundles(c.getCustId(), 0, 50, new AsyncCallback>() { public void onSuccess(List rv) { if (null == rv) return; EventMapper.getInstance().fireEvent(EventMapper.SERVER_DONE, new ServerRequestEvent()); if (rv.size() > 0) { table.setModel(rv); EventMapper.getInstance().fireEvent(EventMapper.BUND_SEL, rv.get(0)); Lien 102>>table.setSelected(rv.subList(0, 1)); } } public void onFailure(Throwable caught) { Window.alert("Failure " + caught); } }); Did the emulation classes change between RC1 and RC2 for some reason? Thanks, --kirby --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---