Export to GitHub

gwt-oauth2 - issue #1

com.google.gwt.core.client.Callback cannot be resolved in GWT 2.3.0


Posted on May 27, 2011 by Swift Ox

What steps will reproduce the problem? 1. Download the demo 2. Setup the demo 3. Compile

Compiler says:

The type com.google.gwt.core.client.Callback cannot be resolved. It is indirectly referenced from required .class files

Comment #1

Posted on May 27, 2011 by Swift Ox

To solve temporary the problem I've downloaded the source code and added the Callback class to the client package.

package com.google.api.gwt.oauth2.client;

public interface Callback {

/**
 * Called when an asynchronous call fails to complete normally.
 * 
 * @param reason
 *            failure encountered
 */
void onFailure(F reason);

/**
 * Called when an asynchronous call completes successfully.
 * 
 * @param result
 *            the value returned
 */
void onSuccess(T result);

}

Comment #2

Posted on May 27, 2011 by Helpful Giraffe

Callback is available if you build from GWT trunk, and is scheduled to be included in GWT SDK 2.4.

Since most people don't do that, I've got a change in the works to add the interface to the library itself, @deprecated, scheduled to be removed and replaced with the real Callback when GWT 2.4 is released.

Sorry for the inconvenience.

Comment #3

Posted on May 27, 2011 by Swift Ox

Thanks!

Comment #4

Posted on May 27, 2011 by Helpful Giraffe

The change has been made, and the new release has been posted: http://code.google.com/p/gwt-oauth2/downloads/detail?name=gwt-oauth2-0.1.1-alpha.jar

Please take a look and let me know if you have any further problems.

Comment #5

Posted on May 27, 2011 by Swift Ox

It works correctly using gwt-oauth2-0.1.1-alpha.jar. No more compilation error: "com.google.gwt.core.client.Callback cannot be resolved" :)

Thanks!

http://socialmkitaui.appspot.com/index.html

Status: Fixed

Labels:
Type-Defect Priority-Medium