Re: PlaceController constructor Deprecated
use com.google.web.bindery.event.shared.EventBus to avoid Depricated API http://www.techiesinfo.com On Friday, September 9, 2011 5:16:17 AM UTC-7, Fabricio Pizzichillo wrote: Hello friends. I use GIN to implement dependency injection. I upgraded to version 2.4.0 and I encounter a problem when I bind ( EventBus.class).To (SimpleEventBus.class). In (Singleton.class); The log says Deferred binding result type ' com.google.gwt.event.shared.EventBus' should not be abstract This happens when I change the imported packages of import com.google.gwt.event.shared.EventBus; com.google.gwt.event.shared.SimpleEventBus import, to import com.google.web.bindery.event.shared.EventBus; import com.google.web.bindery.event.shared.SimpleEventBus;. I made this change because the constructor of the class PlaceController is deprecated @ Deprecated public PlaceController (com.google.gwt.event.shared.EventBus eventBus) { this ((EventBus) eventBus); } Any idea how to solve it? Thanks and greetings! -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscr...@googlegroups.com. To post to this group, send email to google-web-toolkit@googlegroups.com. Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: PlaceController constructor Deprecated
On Friday, September 9, 2011 4:01:37 PM UTC+2, Thomas Broyer wrote: There must be somewhere in your code where you have a dependency on com.google.gwt.event.shared.EventBus rather than com.google.web.bindery.event.shared.EventBus. Oh yes, there is indeed. The GWTP plugin in its latest version creates a presenter with import com.google.gwt.event.shared.EventBus; However, the INIT() method placed on the GIN module apprently only sets a binding for the com.google.web.bindery.event. shared.EventBus What happens is: in the absence of a binding, GIN will use a GWT.create() (contrary to Guice which will fail to build the injector), and com.google.gwt.event.shared.EventBus has no deferred-binding rule (replace-with or generate-with) so GWT tries to instantiate it with its zero-arg constructor; but EventBus is abstract, so GWT complains. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/FZ_0-aCPHWIJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
PlaceController constructor Deprecated
Hello friends. I use GIN to implement dependency injection. I upgraded to version 2.4.0 and I encounter a problem when I bind ( EventBus.class).To (SimpleEventBus.class). In (Singleton.class); The log says Deferred binding result type ' com.google.gwt.event.shared.EventBus' should not be abstract This happens when I change the imported packages of import com.google.gwt.event.shared.EventBus; com.google.gwt.event.shared.SimpleEventBus import, to import com.google.web.bindery.event.shared.EventBus; import com.google.web.bindery.event.shared.SimpleEventBus;. I made this change because the constructor of the class PlaceController is deprecated @ Deprecated public PlaceController (com.google.gwt.event.shared.EventBus eventBus) { this ((EventBus) eventBus); } Any idea how to solve it? Thanks and greetings! -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceController constructor Deprecated
There must be somewhere in your code where you have a dependency on com.google.gwt.event.shared.EventBus rather than com.google.web.bindery.event.shared.EventBus. What happens is: in the absence of a binding, GIN will use a GWT.create() (contrary to Guice which will fail to build the injector), and com.google.gwt.event.shared.EventBus has no deferred-binding rule (replace-with or generate-with) so GWT tries to instantiate it with its zero-arg constructor; but EventBus is abstract, so GWT complains. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NSCn-c07g1wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceController constructor Deprecated
HI Thomas. Thanks for the quick response. I'll check the code and see if I have any error. regards 2011/9/9 Thomas Broyer t.bro...@gmail.com There must be somewhere in your code where you have a dependency on com.google.gwt.event.shared.EventBus rather than com.google.web.bindery.event.shared.EventBus. What happens is: in the absence of a binding, GIN will use a GWT.create() (contrary to Guice which will fail to build the injector), and com.google.gwt.event.shared.EventBus has no deferred-binding rule (replace-with or generate-with) so GWT tries to instantiate it with its zero-arg constructor; but EventBus is abstract, so GWT complains. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NSCn-c07g1wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceController constructor Deprecated
HI Thomas. In my code, I have a class that extends AbstractActivity. The problem is that the interface Activity, which has the method void start (AcceptsOneWidget panel, EventBus eventBus). EventBus belongs to the packagecom.google.gwt.event.shared and should be the com.google.web.bindery.event.shared Is this a mistake? regards 2011/9/9 Fabricio Pizzichillo fpizzichi...@gmail.com HI Thomas. Thanks for the quick response. I'll check the code and see if I have any error. regards 2011/9/9 Thomas Broyer t.bro...@gmail.com There must be somewhere in your code where you have a dependency on com.google.gwt.event.shared.EventBus rather than com.google.web.bindery.event.shared.EventBus. What happens is: in the absence of a binding, GIN will use a GWT.create() (contrary to Guice which will fail to build the injector), and com.google.gwt.event.shared.EventBus has no deferred-binding rule (replace-with or generate-with) so GWT tries to instantiate it with its zero-arg constructor; but EventBus is abstract, so GWT complains. -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/NSCn-c07g1wJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en. -- 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 google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: PlaceController constructor Deprecated
Maybe [1], but that's not relevant to your issue: start() is not called by GIN but by an ActivityManager. That one has a dependency on some EventBus, but the web.bindery one, so it's not the guilty party either. [1] Changing the type of the argument from the com.google.gwt.… EventBus to its parent in web.bindery would have broken everyone's activities, because Java only supports covariance for return types (see http://en.wikipedia.org/wiki/Covariance_and_contravariance_(computer_science)#Java ) -- You received this message because you are subscribed to the Google Groups Google Web Toolkit group. To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/66Db1_1uqSwJ. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.